struct
FootstepComponent
Footstep audio driven by the surface under the character's feet.
- Module
- Game
- Header
#include "Game/Components/FootstepComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Cues are found by convention rather than through a mapping table: the cue for a surface is "<cueFolder>/<SurfaceType>.cuegraph", with "Default.cuegraph" as the fallback. A designer adds gravel footsteps by dropping Gravel.cuegraph in the folder — no registry to keep in sync, and a surface with no cue simply stays silent instead of playing the wrong thing.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | cueFolder | Default "Content/Audio/Footsteps". |
float | strideDistance | Metres of horizontal travel between steps at a normal walk. Default 1.7f. |
float | sprintStrideScale | Default 0.75f. |
float | crouchStrideScale | Default 1.45f. |
bool | stepOnLanding | Default true. |
float | distanceAccumulator | Default 0.0f. |
Vec3 | lastPosition | Default Vec3(0.0f, 0.0f, 0.0f). |
bool | hasLastPosition | Default false. |
bool | wasGrounded | Default false. |
ESurfaceType | lastSurface | Observable result of the last step — what it decided the ground was and which cue that resolved to. Gameplay, debug overlays and the self-test all read these. Default ESurfaceType::Default. |
std::string | lastCuePath | |
int32_t | stepCount | Default 0. |
Generated from Game/Components/FootstepComponent.h via game.json · Nov 5, 2026Version 1.0.0