five-on-it / packages/world/src/level / LiftDef
Interface: LiftDef
Defined in: packages/world/src/level.ts:251
A lift: a platform that rides up and down between its stops on a fixed timetable (a pure function of the tick, as the traffic lights are: no state on the wire), standing a while at each, carrying whoever stands on it.
Properties
depth
depth:
number
Defined in: packages/world/src/level.ts:265
The platform's depth (m).
name
name:
string
Defined in: packages/world/src/level.ts:253
The node's name in the editor: for messages and a stable order.
stops
stops:
number[]
Defined in: packages/world/src/level.ts:267
The heights of the stops over its lowest, ascending (m): at least one.
width
width:
number
Defined in: packages/world/src/level.ts:263
The platform's width (across) and depth (along its heading) (m).
x
x:
number
Defined in: packages/world/src/level.ts:255
The middle of its platform at its lowest stop (m).
y
y:
number
Defined in: packages/world/src/level.ts:257
Its lowest stop: the floor its platform's top is level with there (m).
yaw
yaw:
number
Defined in: packages/world/src/level.ts:261
Its heading (rad, 0 faces +z): the platform's depth runs along it.
z
z:
number
Defined in: packages/world/src/level.ts:259
The middle of its platform (m).