Skip to content

five-on-it / packages/sim/src/doors / doorPose

Function: doorPose() ​

doorPose(d, open): object

Defined in: packages/sim/src/doors.ts:66

Where a door's panel stands, shut (open 0) or open (1 toward the doorway's −z, 2 toward its +z): its centre, its heading and its roll (a barrier's lift about the doorway's z).

Parameters ​

d ​

DoorDef

open ​

number

Returns ​

object

roll ​

roll: number

x ​

x: number

y ​

y: number

yaw ​

yaw: number

z ​

z: number