wanderer
The wanderer part's entry for the valley's scene driver (build, update, destroy), the shared state other parts read (player, tagEntities, tagsVersion) and setupPrototype, which makes a PlayerPrototype the wanderer's.
wanderer
The wanderer part's entry for the valley's scene driver (build, update, destroy), the shared state other parts read (player, tagEntities, tagsVersion) and setupPrototype, which makes a PlayerPrototype the wanderer's.
Ported from blendi/painted-valley on Patch (MIT).
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
refreshObstacles(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
useGround(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
context( ) → any
The valley context for a body that finds no scene driver (a test scene): core and the world, the original's wind and the afternoon light.
build(v: any) → void
| arg | type | description |
|---|---|---|
| v | any |
update(v: any, _dt: number) → void
| arg | type | description |
|---|---|---|
| v | any | |
| _dt | number |
destroy(_v: any) → void
| arg | type | description |
|---|---|---|
| _v | any |
setThird(on: boolean) → void
First person or third (V). Either way you are where you were, looking where you looked.
| arg | type | description |
|---|---|---|
| on | boolean |
standAt(x: number, z: number, yaw: number) → void
Stands the local wanderer at a place, facing a way (his yaw: 0 looks along +z), still.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| yaw | number |
setTags(id: string, tags: { any }?) → void
(the body component keeps the tag list: its own parts while it lives)
| arg | type | description |
|---|---|---|
| id | string | |
| tags | { any }? |
setupPrototype(body: any, rig: any) → void
Makes a PlayerPrototype the wanderer's, from a scene's build.luau: `body` and `rig` are the prototype's body entity and its CameraRig (a Camera entity, OwnerOnly). The body becomes Patch's starter man (an `Asset` on figure/starter_man.bundle) wearing the `Wanderer` component; the rig's Camera behaviour becomes `Follow` at the third person's FOV 52, and it carries the ears (an AudioListener) for his footsteps. local W = require("paintedValley.wanderer.wanderer") W.setupPrototype(body, rig)
| arg | type | description |
|---|---|---|
| body | any | |
| rig | any |
drop(e: any, name: string) → void
| arg | type | description |
|---|---|---|
| e | any | |
| name | string |
The wanderer part's entry for the valley's scene driver (build, update, destroy), the shared state other parts read (player, tagEntities, tagsVersion) and setupPrototype, which makes a PlayerPrototypeSub-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.