WildlandsPlayer
Everything the person at the keyboard does, on top of the movement the avatar already provides: swinging a tool at what the crosshair is on, hand-gathering loose stone and fiber with E, throwing a Wildcore Orb and resolving the capture, eating, and keeping the survival meters hon…
WildlandsPlayer
Everything the person at the keyboard does, on top of the movement the avatar already provides: swinging a tool at what the crosshair is on, hand-gathering loose stone and fiber with E, throwing a Wildcore Orb and resolving the capture, eating, and keeping the survival meters honest.
Targeting is aim-based, not proximity-based: WildlandsWorld:aimNode scores each
node by how directly it lies along the camera's forward, so the tree you look at
is the tree you hit.
Attached to the player's avatar body by the scene entrypoint on
localPlayerReady. It activates the wildlands input map and needs
WildlandsWorld to exist.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2WILDLANDS — the player. Everything the person at the keyboard does: swinging a tool at a tree or a creature, picking things up, throwing a Wildcore Orb, eating, and keeping the survival meters honest. Movement, jumping and the camera belong to the avatar and the CameraRig the scene authored; this component adds the game on top.
worldComp( ) → void
The world component is re-resolved every time rather than cached. A component that hot-reloads is a NEW instance holding its own state, so a cached handle keeps answering from the old one — reading an emptied node list and silently finding no target, while everything else in this component keeps working.
camPos( ) → void
camForward( ) → void
aimHit(range: ?) → void
What the player is looking at, from the camera, through the world.
| arg | type | description |
|---|---|---|
| range | ? |
creatureInReach(range: ?) → void
A creature is "in reach" when it is close to the player AND under the crosshair — not merely nearby.
| arg | type | description |
|---|---|---|
| range | ? |
nodeInReach(range: ?) → void
The node under the crosshair. Aim decides, distance only bounds it.
| arg | type | description |
|---|---|---|
| range | ? |
toolMesh(kind: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? |
showTool(kind: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? |
findBone(e: ?, name: ?, depth: ?) → void
the rig's right shoulder is the nearest thing to a hand this avatar exposes
| arg | type | description |
|---|---|---|
| e | ? | |
| name | ? | |
| depth | ? |
wearSelected(amount: ?) → void
| arg | type | description |
|---|---|---|
| amount | ? |
swingAt(rec: ?, isCreature: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? | |
| isCreature | ? |
gatherHand( ) → void
Hand-gather: loose stones, berries, fiber — one press, one pickup.
throwOrb( ) → void
updateOrbs(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
hotbar(i: ?) → void
| arg | type | description |
|---|---|---|
| i | ? |
bindInputs( ) → void
on(name: ?, handler: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| handler | ? |
awake( ) → void
start( ) → void
nodeInfo(rec: ?) → void
What to call a resource node on the HUD, and what the player should do with it.
| arg | type | description |
|---|---|---|
| rec | ? |
update(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.