Proving Grounds: 3D Platformer Mechanics Support: GitHub issues

Spin

1. What it does

A short spin attack (0.3 s) that breaks crates and defeats enemies around the hero, on the ground and in the air. Mash the button and spins chain. The triple spin is a late unlock you switch on from Blueprint.

2. Turn on / off

3. Level actor to place

None. Crates and enemies are the targets.

4. Details fields

Field Default What it does
Spin Duration (SpinDuration) 0.3 How long one spin lasts. (Details: Corridor | Spin)
Spin Radius (SpinRadius) 116 Horizontal hit reach around the character (cm). (Details: Corridor | Spin)
Spin Half Height (SpinHalfHeight) 36 Vertical half-height of the hit band, starting at the feet. Kept under one crate so a stack breaks one crate per spin. (Details: Corridor | Spin)
Spin Hit Interval (SpinHitInterval) 0.1 Re-hit interval while spinning. (Details: Corridor | Spin)
Spin Cooldown (SpinCooldown) 0 Lockout after a spin ends before another can start. 0 = none. (Details: Corridor | Spin)
Spin Buffer Window (SpinBufferWindow) 0.3 Mash to keep spinning: a spin press this long or less before the running spin ends is kept, and the next spin starts the moment this one ends (new hit window, no SpinOut in between). 0.3 = the whole spin; 0 = presses during a spin are ignored. (Details: Corridor | Spin)
Spin Visual Turns (SpinVisualTurns) 2 Visual turns of the mesh during one spin. (Details: Corridor | Spin)
Spin Move Mode (SpinMoveMode) KeepMomentum How a spin started on the ground moves the hero: InPlace (stops, ~30 cm of skid from a run), KeepMomentum (runs on at SpinSpeedScale x the run speed) or ForwardPush (KeepMomentum plus a fading push in the stick direction). (Details: Corridor | Spin)
Spin Speed Scale (SpinSpeedScale) 1 KeepMomentum / ForwardPush: top ground speed while spinning, as a share of the run speed (1 = full run speed). (Details: Corridor | Spin)
Spin Forward Impulse (SpinForwardImpulse) 250 ForwardPush: speed added in the stick direction when the spin starts (cm/s). No push with the stick released. (Details: Corridor | Spin)
Spin Push Fade Time (SpinPushFadeTime) 0.3 ForwardPush: the push fades linearly to nothing over this time (0.3 = one spin). (Details: Corridor | Spin)
Triple Spin (bTripleSpin) false Triple spin (a late unlock: set it from Blueprint, e.g. after the final boss): pressing spin again during a spin with the stick pushed well over (> 0.87) chains a medium, then a strong spin; each runs faster and hits wider. (Details: Corridor | Spin)
Triple Spin Speed Boost (TripleSpinSpeedBoost) (386, 643) Triple spin: extra run speed while the medium (X) and the strong (Y) spin last (cm/s). (Details: Corridor | Spin)
Triple Spin Reach (TripleSpinReach) (1.11, 1.22) Triple spin: the hit box (SpinRadius) times this for the medium (X) and the strong (Y) spin. (Details: Corridor | Spin)

Option A (Corridor Hero component): Spin Duration and Attack Radius under 2. Attack.

Field Default What it does
Spin Duration (SpinDuration) 0.3 Seconds a Move Spin attacks (crates break, enemies fall). (Details: 4. Moves)
Attack Radius (AttackRadius) 110 Radius around the character that an attack (Start Attack, or Is Hero Attacking true) reaches: crates break, enemies fall. (Details: 2. Attack)

The three Spin Move Mode choices: In Place (the hero stops and spins on the spot, the stick only turns them), Keep Momentum (default: keeps running at Spin Speed Scale x run speed, steered by the stick), Forward Push (Keep Momentum plus a push of Spin Forward Impulse that fades over Spin Push Fade Time).

5. Blueprint functions and events

Node Kind What it does
Set Ability Enabled / Is Ability Enabled Function / Getter The switch above (Ability = Spin).
Get Corridor Action Getter Spin during a spin, Cyclone while the Cyclone power is on.
On Action Started / Ended Event dispatchers One pair per spin.
On Spin Started Event Implement it in a Blueprint child for your own sound or effect.
On Spin Pressed / Released Function Call them from your own input (touch UI, your own key).
Is Spinning, Get Spin Stage, Get Spin Chain Count Getters The state. Stage tells a normal from a triple spin.
Start Attack (Corridor Hero component) Function Option A: call it from your attack input; Duration in seconds.

6. Use your own animation

Leave Anim Set empty and play your attack from Get Corridor Action = Spin (and Cyclone for the long spin). Use Get Spin Stage to pick a medium or strong variant for the triple spin.

7. See it in the demo

Course1_RunAndJump (crate stacks), Course2_EnemiesHazards (spin an enemy and it flies off as a projectile), System_Gallery.

8. Pitfalls