gait
Walks like its own person (with an animator on clip "auto"): about fifteen walk traits (step length and cadence, arm swing, pelvis sway, body bob, lean, head carriage, shoulders, elbows, toe-out, step width) made from a seed, shifted by presets (a mood, an age, a build), and every step a little different (about 2%, drifting slowly the way real steps do). The same seed is always the same person, on every machine and in replays; feet stay planted. With a stats component an empty stamina bar tires the walk. Only what differs from the defaults is written: gait { preset "tired" seed 41 }. Without a gait component every animated character still walks as its own everyday person (seeded from its id and the session seed; steps vary half as much on a character the player controls); gait { off true } walks exactly as the clips do.
In scene text
gait { off true preset "…" seed 1 }Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.
Fields 21
| Field | Type | Unit / range | What it does |
|---|---|---|---|
off | true / false | — | No gait DNA: walks exactly as its clips do (every animated character otherwise walks as its own everyday person, seeded from its id). |
preset | text | — | |
seed | number | 0 … 16 | Which person (a whole number): the same seed always walks the same way. 0: made from the object's name. |
mood | text | — | |
age | text | — | |
build | text | — | |
fatigue | number | 0 … 1 | Tiredness on top of the stats' stamina (0 rested, 1 exhausted): shorter steps, less arm swing, more lean and head down, steps less even. |
stride | number | 0.5 … 2 | × step length at a given speed; the cadence follows (longer steps, fewer of them), so feet never slide. |
arm_swing | number | 0 … 4 | × arm swing. |
sway | number | 0 … 4 | × the pelvis's side-to-side sway and roll. |
bounce | number | 0 … 3 | × the body's up-and-down bob (the head bobs with it). |
variability | number | 0 … 5 | × how much each step differs from the last (1: about 2%, like a healthy adult). |
lean | number | deg, -30 … 40 | Trunk leaned further forward (negative: back). |
head | number | deg, -40 … 40 | Head carried further down (negative: chin up). |
shoulders | number | deg, -30 … 30 | Shoulders dropped further (negative: raised, tense). |
slouch | number | deg, -30 … 30 | Shoulders rounded further forward (negative: chest out). |
elbows | number | deg, -30 … 60 | Elbows carried more bent. |
arms_out | number | deg, -10 … 30 | Arms carried further out from the body (negative: in): broad or heavy bodies need a few so the swinging hands clear the thighs. |
toe_out | number | deg, -30 … 30 | Feet turned further out (negative: in). |
pelvis_tilt | number | deg, -10 … 10 | Pelvis tipped further forward. |
step_width | number | m, -0.1 … 0.15 | Feet set further apart (negative: closer). |