CMCharacter Modules 0.1.0

Spin

Kind: State · Add Component: Character Modules > States > Spin

Spins the character when the stick is circled. It starts the high, floaty spin jump.

A short spin started by circling the stick: a little slower, and the start of the high, floaty spin jump.

Inspector
▼Spin⋮
CharacterCharacter (Character Motor)
Duration1.517
Max Speed6.1
Stick Speed7.6
Kept Per Second0.046
Jump Speed14.9
Jump Gravity Scale0.267
Jump Max Speed6.1
The Spin component in the Inspector, with its defaults.
Origin. Super Mario Odyssey (2017): the spin, from twirling the stick.

How it works

An action of Walking. Starts only when Stick Twirl asks, on: stick twirl. Ends when its time is up, then the Walking mode.

Happens on: jump in a spin, from Spin.

Spin: a short twirl on the ground, as in modern 3D platformers (Stick Twirl starts it from a circled stick). For duration the character spins along at a low speed that follows the stick, the body facing the way it moves; faster speed brought in fades away. Jumping out of it is a spin jump: high, slow to rise and fall, and with little horizontal speed. A ground pound in a spin jump drops at once (a spin-pound). It only starts when another module asks for it.

The motor's Body Facing must be States. Numbers from the modern 3D platformer measurements (D44).

Combine it

  • Needs: Air Move. The Inspector warns while one is missing.
  • Priority 19: when several states could run, the highest priority wins (see How modules combine).
  • Jump rank 44: when a jump starts, the highest-ranked shape that applies chooses its launch.
  • Body facing: works with characters whose body faces States.
  • Used by the presets: Modern Platformer.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
DurationSeconds the spin lasts.0 or more1.517
Max SpeedFastest spin speed, m/s; faster speed brought in fades to it.0 or more6.1
Stick SpeedSpeed the stick drives the spin toward at full tilt, before the cap, m/s.0 or more7.6
Kept Per SecondShare of the speed kept every second, as it moves toward the stick's speed.0 to 10.046
Jump SpeedUpward speed of a spin jump, m/s.0 or more14.9
Jump Gravity ScaleGravity is multiplied by this during a spin jump.0 or more0.267
Jump Max SpeedFastest horizontal speed in a spin jump, m/s.0 or more6.1

Additional resources