ABILITY 09
GroundSmash
Strike the ground to deal area damage, push enemies away and create impact effects.
Activation
GroundSmashButtonExample use
Strike a group of enemies with a ground impact.
Ability documentationCHARACTER ABILITY
SETUP GUIDE
Set up this ability
Component dependencies
| Component | Where to add or assign it | Purpose / setup |
|---|---|---|
| CorgiController | Target GameObject | Required for the push effect; damage can still be applied without pushing. |
- Add CharacterGroundSmash and configure TargetLayerMask for your scene.
- Set ImpactDamage, ImpactRadius and PushForce. A zero PushForce skips knockback.
- The push effect requires CorgiController on the target.
- Optionally assign CrackEffectPrefab and set CrackDuration. Add a GroundSmash bool to your Animator.
- Stand on the ground and press GroundSmashButton. Activation is rejected while the controller is not grounded.
Inspector reference
These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.
| Field | Type | Declared default |
|---|---|---|
ImpactDamage | float | 15f |
ImpactRadius | float | 3.5f |
PushForce | float | 8f |
TargetLayerMask | LayerMask | Not assigned in declaration |
TargetFlickerDuration | float | 0.2f |
TargetInvincibilityDuration | float | 0.5f |
CrackEffectPrefab | GameObject | Not assigned in declaration |
CrackDuration | float | 3f |
Usage notes
- Configure the target layer mask for your scene.
- The stop coroutine uses animation duration. Keep ActivationDelay shorter than the relevant clip duration and validate hit timing in Play Mode.
