FootballerDriver
Animates one footballer body spawned by `characters.footballer`. It sits on the footballer's root entity (the one `setPose` moves) and drives the rigged body under it (the `skin` mesh's skeleton, which every slot mesh shares) through one AnimGraph: a Mixer of the locomotion blend…
FootballerDriver
Animates one footballer body spawned by characters.footballer. It sits on the
footballer's root entity (the one setPose moves) and drives the rigged body
under it (the skin mesh's skeleton, which every slot mesh shares) through one
AnimGraph: a Mixer of the locomotion blend space (Synty idle, walk, run and
sprint, with strafes), a dribble loop and an action slot for kick, pass, lob,
tackle, stumble, the keeper dives, catch, throw, celebrations and dejected.
Nothing else needs to sit beside it. characters.footballer adds it and talks
to it through drive(action, speed); state() reports the action, the clip in
the action slot and the blend weights.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2FootballerDriver Component Animates one footballer body spawned by `characters.footballer`. It sits on the footballer's root (the entity `setPose` moves) and drives the rigged body under it through one AnimGraph: Mixer [1] locomotion: BlendSpace2D, strafe angle (deg) x ground speed (m/s): idle, walk F/L/R/B, run F/L/R/B, sprint F (the Synty set) [2] dribble: a looping clip, played faster the faster the carrier runs [3] action: the clip of the current action (one-shots and loops) Speed comes from `setAction(action, speed)`; the direction of travel is measured from the root's motion against the facing `setPose` gave, so a keeper side-stepping while facing the ball plays the strafe clips. One-shot actions (kick, pass, lob, tackle, stumble, dives, catch, throw) play once from their start when the action begins, then fade back to locomotion even if the sim still reports the action. Loop actions (celebrate, dejected) play for as long as the action holds.
findBody( ) → string
clipNode(ref: any, layout: any, looping: boolean) → any
| arg | type | description |
|---|---|---|
| ref | any | |
| layout | any | |
| looping | boolean |
build( ) → void
add(ref: any, x: number, y: number, gait: string?) → void
| arg | type | description |
|---|---|---|
| ref | any | |
| x | number | |
| y | number | |
| gait | string? |
placeSamples( ) → void
Place each locomotion sample at the speed its clip carries this body, once the bakes have landed, so feet keep pace with the ground.
nodeFor(name: string) → any
| arg | type | description |
|---|---|---|
| name | string |
startAction(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
chooseCelebration( ) → string
applyAction(action: string) → void
| arg | type | description |
|---|---|---|
| action | string |
drive(action: string, speed: number) → void
Show an action (a CONTRACT action name) at a ground speed in m/s.
| arg | type | description |
|---|---|---|
| action | string | |
| speed | number |
step(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
pitch(deg: number) → void
| arg | type | description |
|---|---|---|
| deg | number |
state( ) → any
Where the driver stands: its action, the clip in the action slot, the mixer weights and the locomotion blend parameters.
start( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
editorUpdate(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.