Skip to content

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? ​

optional doors?: 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? ​

optional drop?: 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? ​

optional flats?: 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? ​

optional legless?: 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? ​

optional limbs?: 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? ​

optional root?: 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? ​

optional steer?: 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? ​

optional turns?: 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? ​

optional weapon?: 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? ​

optional wheelAngle?: 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? ​

optional worlds?: 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? ​

optional wrecked?: 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.