Surface Footsteps (your characters)

Surface Footsteps goes on each character that should make steps: the player, NPCs, animals, remote players in a multiplayer game. It doesn't move the character and doesn't need to know how it moves.

The main choices (top of the inspector) #

Setting What it does
Library Your surfaces.
Profile How steps feel. Empty: the Preset below. New profile from preset makes an asset you can change and share.
Steps come from Automatic, Animation Events, Foot Bones or Manual. See When steps happen.
Dimension 3D, 2D Side View or 2D Top-Down. See 2D games.
Character type What kind of character it is: see below.

A status line under the title says "Ready" or the first problem, with Why No Footstep? and Setup Wizard buttons. In Play Mode it shows the last step and Test a step / Test a landing buttons play one on demand.

Character types #

Not every character walks on two legs. Character type tells Surface Footsteps how this one touches the ground, and it steps, sounds and leaves marks to match. Everything else (surfaces, profiles, zones, AI hearing) works the same for every type.

Type For What changes
Two legs People, robots on legs, birds Left, right, left, right.
Four legs Dogs, horses, dragons Twice as many feet over the same ground: four beats at a walk, front pair then hind pair at a run. Prints land at the front and the back of the body (Body length).
Hopping Rabbits, frogs, bouncing slimes Both feet land together, a little harder. Prints side by side.
Many legs Spiders, insects, walking machines Many quick, light steps along the body (Pairs of legs, Body length).
Wheels Carts, cars, tanks, wheeled robots No steps: one rolling sound on the surface underneath for as long as it moves, and two tracks where the ground keeps marks.
Slither Snakes, slugs, anything dragged No steps: one sliding sound, and a single trail.
Hover Drones, ghosts, fairies It touches nothing: silent, no marks, no effects on the ground and no noise for AI. The step events still fire for your own code.
  • Footprint picture gives this character its own print (a paw, a hoof, a claw, a tyre tread) in place of the profile's, and Footprint size makes it smaller or bigger than the profile's. The samples include Shoe, Paw, Hoof, Claw, Tread and Trail.
  • See them side by side in Tools > Responsive FX > Demos > Character Types: seven lanes, one creature per type, each crossing gravel, snow and wood.
  • Wheels and Slither use each surface's Roll and Slide answers, the same ones physics objects use. A short pause (a tap of the brakes) keeps the same sound going; a real stop ends it.
  • With Animation Events, Foot Bones or Manual, your own timing still decides when a step plays; the type decides the marks and the weight of each step.
  • From code: footsteps.Gait = FootstepGait.FourLegs;

Ground check and feet #

Setting What it does
Ground Layers Layers that count as ground. Leave on Everything unless the check hits things it shouldn't.
Feet Offset Where the feet are, relative to the pivot. 0 when the pivot is at the feet.
Check Height, Check Depth The ground check starts this far above the feet and reaches this far below. Raise the depth for stairs.
Foot Spacing Steps and footprints alternate left and right of the centre.
Left Foot, Right Foot Bones for the Foot Bones trigger and exact footprints. The wizard finds them on humanoids.
Crouch Detection Collider Height (crouched when the capsule shrinks to 75% or less) or Manual (SetCrouching).
Floor Tilemaps Top-down 2D only: the tilemaps that make the floor.

The character's own colliders are always ignored by the ground check.

This character (overrides the profile) #

Volume, pitch and stride scales; Footprints, Effects and Noise each Use Profile, On or Off; Spatial (Use Profile, Flat or Full 3D); Forced Surface (a robot always sounds like Metal); Surface Swaps (this giant's Wood sounds different); Gear Sounds played with every step (armour, chains, a squeaky shoe).

Sound player and events #

  • Sound Player: a component that implements IFootstepSoundPlayer plays the sounds instead (FMOD, Wwise, your own audio manager). See Extending.
  • On Step, On Jump, On Land: UnityEvents for no-code wiring (camera bob, controller rumble).

Swimming, ladders and teleports #

  • Pause Auto Steps / Resume Auto Steps (also callable from UnityEvents): no automatic steps, jumps or landings while swimming, climbing or in a cutscene. Your own Step() calls still play.
  • ResetMotion(): call it after a teleport, respawn or reusing a pooled character.

See Your controller and game for more.

Moving platforms, stairs, teleports #

Standing still on a moving platform plays nothing: Responsive FX takes the platform's movement out. Stairs work with the default check depth; raise Check Depth for tall steps. A jump of more than 4 m in one frame is never a step.

Something unclear or wrong? Tell us · Get help