racer
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
racer
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2CHAIRSHIFT GP — the chair the player drives.
material(name: ?, color: ?, opts: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| color | ? | |
| opts | ? |
liveryKey(livery: ?) → void
| arg | type | description |
|---|---|---|
| livery | ? |
quatY(a: ?) → void
THE CHAIR — a T54 racing chair: two big cambered drive wheels on a carbon pod, a long fork out front with a small steering wheel, and a rider tucked down over the handrims.
| arg | type | description |
|---|---|---|
| a | ? |
quatZ(a: ?) → void
| arg | type | description |
|---|---|---|
| a | ? |
quatX(a: ?) → void
| arg | type | description |
|---|---|---|
| a | ? |
node(parent: ?, name: ?, position: ?, rotation: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| position | ? | |
| rotation | ? |
part(parent: ?, name: ?, mesh: ?, mat: ?, position: ?, scale: ?, rotation: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| mesh | ? | |
| mat | ? | |
| position | ? | |
| scale | ? | |
| rotation | ? |
driveWheel(chair: ?, side: ?, mats: ?, camber: ?) → void
One drive wheel: a carbon disc inside a tyre, with a handrim beside it and three livery spokes across the face so the roll is readable.
| arg | type | description |
|---|---|---|
| chair | ? | |
| side | ? | |
| mats | ? | |
| camber | ? |
dress(chair: ?, livery: ?) → void
SHARED INTERFACE — the field slice builds its rivals with this call, so every chair on the grid is the same chair in a different livery. Keep the signature: Racer.dress(entity, livery) where livery is { r, g, b } in 0..1. Calling it twice on one body rebuilds it.
| arg | type | description |
|---|---|---|
| chair | ? | |
| livery | ? |
controls( ) → void
cameraEntity( ) → void
THE CAMERA — the chase camera installed from ZeroMind, pointed at this chair and fed the chair's travel heading, boost and impacts.
chaseComponent( ) → void
wireCamera(chair: ?) → void
| arg | type | description |
|---|---|---|
| chair | ? |
isDressed(chair: ?) → void
ATTACH / DETACH
| arg | type | description |
|---|---|---|
| chair | ? |
attach(chair: ?, redress: ?) → void
`redress` defaults true. The self-heal below passes false so taking the body back after a source edit does not rebuild fifty entities.
| arg | type | description |
|---|---|---|
| chair | ? | |
| redress | ? |
detach( ) → void
clamp(v: ?, lo: ?, hi: ?) → void
DRIVING
| arg | type | description |
|---|---|---|
| v | ? | |
| lo | ? | |
| hi | ? |
shedToward(v: ?, amount: ?) → void
| arg | type | description |
|---|---|---|
| v | ? | |
| amount | ? |
cashDrift(rec: ?) → void
Read the charge in and hand back the boost seconds it bought.
| arg | type | description |
|---|---|---|
| rec | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
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.