five-on-it / apps/client/src/renderer/models / DrawOptions
Interface: DrawOptions
Defined in: apps/client/src/renderer/models.ts:299
How ActorModels.draw draws an actor.
Properties
doors?
optionaldoors?:ReadonlyMap<string,number>
Defined in: apps/client/src/renderer/models.ts:311
A car's doorways ajar, by name, and how far (0 shut to 1 wide open); a doorway left out is shut.
drop?
optionaldrop?:number
Defined in: apps/client/src/renderer/models.ts:301
How far below the actor's node its feet stand (m): a person's node is at its capsule centre.
flats?
optionalflats?:number
Defined in: apps/client/src/renderer/models.ts:317
A car's flat tyres, bit i the simulation's wheel i (per axle, left then right): drawn squashed onto their rims.
legless?
optionallegless?:boolean
Defined in: apps/client/src/renderer/models.ts:319
A seated figure drawn without its legs (its seat's are hidden inside the car).
limbs?
optionallimbs?:ReadonlyMap<string,Quaternion>
Defined in: apps/client/src/renderer/models.ts:325
The turns of a model's limbs (LIMBS: a dog's legs, head and tail), by the limb's name, each about its joint in the limb's own frame (the file's: +y up, x across, the model facing −z); a limb left out is at rest.
root?
optionalroot?:object
Defined in: apps/client/src/renderer/models.ts:307
The figure's root as posed this frame (the empty at the feet: dropped by a crouch, turned by a roll).
at
at:
Vector3
turn
turn:
Quaternion
steer?
optionalsteer?:number
Defined in: apps/client/src/renderer/models.ts:313
A car's steering, from −1 (full right) to 1 (full left): its steering wheel turns 2.4 rad at full.
turns?
optionalturns?:ReadonlyMap<"head"|"torso"|"arm-l"|"arm-r"|"forearm-l"|"forearm-r"|"leg-l"|"leg-r"|"shin-l"|"shin-r",Quaternion>
Defined in: apps/client/src/renderer/models.ts:305
A figure's parts as posed this frame (figure.ts); the character's rest pose without.
weapon?
optionalweapon?:string
Defined in: apps/client/src/renderer/models.ts:327
The weapon a figure holds, by its model's name (pistol, rocket-launcher); none for empty hands.
wheelAngle?
optionalwheelAngle?:number
Defined in: apps/client/src/renderer/models.ts:315
How far a car's front wheels are turned (rad, positive toward +x, its left), as the simulation turns them.
worlds?
optionalworlds?:ReadonlyMap<"head"|"torso"|"arm-l"|"arm-r"|"forearm-l"|"forearm-r"|"leg-l"|"leg-r"|"shin-l"|"shin-r",Matrix>
Defined in: apps/client/src/renderer/models.ts:309
Each part's world matrix, in place of the node and the pose (a ragdoll, ragdoll.ts).
wrecked?
optionalwrecked?:boolean
Defined in: apps/client/src/renderer/models.ts:303
Drawn as a burnt-out shell (a car that has blown up): its paint scorched, its other materials burnt.