CMCharacter Modules 0.1.0

Footsteps

Kind: Modifier · Add Component: Character Modules > Modifiers > Footsteps

Reports each step and landing. Sound and effects follow the stride.

Reports a footstep at the pace of the stride, and landings, so sound and effects can follow the character without knowing how it moves.

Inspector
▼Footsteps⋮
CharacterCharacter (Character Motor)
Stride Length1.6
Minimum Speed0.5
The Footsteps component in the Inspector, with its defaults.
Origin. Footstep sounds by stride were a shooter staple from Quake (1996) and Half-Life (1998) on.

How it works

Changes no state: it only reports or reacts.

Footsteps: emits a Footstep event every strideLength metres walked on the ground, carrying the speed and the collider underfoot (whose Character Surface names the sound set). Audio, decals and camera bob listen to it; without animation, this is what times the steps.

Combine it

  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Modern Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Stride LengthDistance between footsteps, metres.0.1 or more1.6
Minimum SpeedSlower than this does not count as walking, m/s.0 or more0.5

Additional resources