playerrig
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Blast Radius — first-person player rig. Body entity carrying the builtin CharacterController (WASD + Space jump, camera-relative, self-driven) and a camera entity carrying Camera + AudioListener + the builtin first_person mouse-look controller targeting the body. update(rig, dt) only drives the camera-shake decay.
rotateForward(q: ?) → void
| arg | type | description |
|---|---|---|
| q | ? |
spawn(pos: ?, opts: ?) → void
Spawn body + camera at pos and wire mouse-look to the body.
| arg | type | description |
|---|---|---|
| pos | ? | |
| opts | ? |
update(rig: ?, dt: ?) → void
Per-frame drive: camera-shake decay. Movement + look are component-driven.
| arg | type | description |
|---|---|---|
| rig | ? | |
| dt | ? |
position(rig: ?) → void
Where the player is standing (body position).
| arg | type | description |
|---|---|---|
| rig | ? |
aimRay(rig: ?) → void
Crosshair ray: camera world position + facing direction.
| arg | type | description |
|---|---|---|
| rig | ? |
applySettings(rig: ?, settings: ?) → void
Live-tune settings (mouse sensitivity, camera shake toggle).
| arg | type | description |
|---|---|---|
| rig | ? | |
| settings | ? |
addTrauma(rig: ?, amount: ?) → void
Explosion feedback: kick the camera shake (0..1 per hit, clamps at 1.6).
| arg | type | description |
|---|---|---|
| rig | ? | |
| amount | ? |
lockPointer(on: ?) → void
| arg | type | description |
|---|---|---|
| on | ? |
despawn(rig: ?) → void
Remove the rig.
| arg | type | description |
|---|---|---|
| rig | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
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.