Bro Code logoBRO CODE CRINDEPENDENT GAME DEV TOOLS
← All abilities
ABILITY 10

GravityPull

Create a vortex that pulls nearby enemies toward your character and groups them together.

Activation

GravityPullButton

Example use

Group enemies before following up with GroundSmash.

Ability documentation
CHARACTER ABILITY
SETUP GUIDE

Set up this ability

Component
CharacterGravityPull
Source
Scripts/Abilities/CharacterGravityPull.cs
Animator bools
GravityPull

Component dependencies

Requirements for this ability and its targets
ComponentWhere to add or assign itPurpose / setup
CorgiControllerTarget GameObjectRequired for applying the pull movement.
  1. Add the CharacterGravityPull component to your character.
  2. Select GravityPullButton.
  3. Set TargetLayerMask. Targets need CorgiController for the pull effect.
  4. Tune PullRadius, PullSpeed, MinDistance and ScanInterval. Use a positive ActiveTime for a timed field.
  5. Activate to gather nearby targets, then test a GroundSmash follow-up while grounded.

Inspector reference

These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.

CharacterGravityPull fields
FieldTypeDeclared default
PullRadiusfloat6f
PullSpeedfloat8f
MinDistancefloat1f
TargetLayerMaskLayerMaskNot assigned in declaration
ScanIntervalfloat0.1f

Usage notes

  • Pulling directly sets horizontal and vertical controller force. AI movement may compete with it; check target behavior in Play Mode.
  • GravityPull is the name used by the component, input map and Animator.