Wanderer
The body of a Painted Valley player: put it on the PlayerPrototype's body entity beside an `Asset` on `paintedValley.wanderer.figure.starter_man`. It dresses Patch's starter man (cel paint, straw hat, blue cloak) and poses him every frame: the local player's from main.js's walker…
Wanderer (component)
The body of a Painted Valley player: put it on the PlayerPrototype's body entity beside an Asset on
paintedValley.wanderer.figure.starter_man. It dresses Patch's starter man (cel paint, straw hat, blue cloak) and
poses him every frame: the local player's from main.js's walker (third person with the figure's player, animator,
foot placement and cloth; first person with V), every other player's from their peer's avatar channel. Ported from
blendi/painted-valley (MIT): src/valley/main.js, src/figure/*, src/valley/wanderer.js, src/valley/sounds.js.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
v( ) → any
groundAt(x: number, z: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
yawQuat(yaw: number) → void
| arg | type | description |
|---|---|---|
| yaw | number |
myRole( ) → string
meadow( ) → any
bend(x: number, z: number, r: number, vx: number, vz: number, amount: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| r | number | |
| vx | number | |
| vz | number | |
| amount | number |
sunDir( ) → vector
setShared(name: string, value: { number }) → void
| arg | type | description |
|---|---|---|
| name | string | |
| value | { number } |
air(x: number, _y: number, z: number) → vector
The wind where the cloak is: the valley's, in gusts (main.js air()).
| arg | type | description |
|---|---|---|
| x | number | |
| _y | number | |
| z | number |
bindSinks( ) → void
applyPose( ) → void
standAt(x: number, z: number, yaw: number) → void
Stands him at a place, facing a way (his yaw: 0 looks along +z), still.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| yaw | number |
setThird(on: boolean) → void
Third person or first. Either way you are where you were, looking where you looked.
| arg | type | description |
|---|---|---|
| on | boolean |
tread(dt: number, heard: boolean) → void
What walking does to the meadow and, for a walker with no feet to be seen, what it sounds like.
| arg | type | description |
|---|---|---|
| dt | number | |
| heard | boolean |
publishPlayer( ) → void
the walker's numbers out to v.player (other parts read it)
updatePlayer(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
placeCamera( ) → void
updateWanderer(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
openChannel( ) → void
clipIndex(name: string?) → number
| arg | type | description |
|---|---|---|
| name | string? |
stateOut(gaze: vector) → void
| arg | type | description |
|---|---|---|
| gaze | vector |
updateRemote(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
soundsHere(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
ears( ) → void
setup( ) → boolean
becomeLocal( ) → void
onView( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
onDestroy( ) → void
setThird(_self: any, on: boolean) → void
what the part module and tests reach on this body
| arg | type | description |
|---|---|---|
| _self | any | |
| on | boolean |
standAt(_self: any, x: number, z: number, yaw: number) → void
| arg | type | description |
|---|---|---|
| _self | any | |
| x | number | |
| z | number | |
| yaw | number |
destroy(_self: any) → void
| arg | type | description |
|---|---|---|
| _self | any |
state(_self: any) → void
| arg | type | description |
|---|---|---|
| _self | any |
input(_self: any) → void
| arg | type | description |
|---|---|---|
| _self | any |
The body of a Painted Valley player: dresses and animates Patch's starter man as the wanderer (walker, animator, foot IK, cloak, footsteps, avatar channel).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.