Repository navigation
Turntable Geometry
Which way the bearing points, one of up, down, north, south, east, west. The plate turns
around this axis.
Block positions as {x = , y = , z = }. getPos is the bearing itself, in world coordinates.
getPlatePos is the plate's anchor block, and it returns nil when the turntable is not assembled.
These are not world coordinates. An assembled plate is in a sub level plot far from the
world origin, so the values can be in the millions. Use it to tell plates apart, not to find
the plate's world position. For that, use getAxisPos().
The UUID of the plate's sub level as a string, or nil when not assembled.
Do not save this. A sub level gets a fresh id every time the world loads.
The rotation axis in world coordinates, as {x = , y = , z = } with decimals. getAxisPos is the
point the plate turns about, getAxisNormal is the unit vector it turns around. Both account for a
bearing that is itself riding inside another sub level. Both need the turntable assembled.
Start here
Reading the train
- Identity
- Motion
- State
- Station
- Signals
- Track ahead
- Orientation
- World position
- Carriages
- Consist wide cargo
Driving the train
Schedules
Doors and body
Links
The whole railway
Reacting to changes
Programs and reference
Start here
Controlling the plate
Automatic modes
Reading the turntable
Reference