Rotation table - originalfoo/Prison-Architect-API GitHub Wiki
##Overview
Defines rotation (a.k.a. orientation) of an object so you know which way it is facing.
##Syntax
The value of applicable properties will be a table with two fields, .x and .y:
{ x = <x>, y = <y> }Where <x> and <y> are numbers specifying the direction as points on a cartesian axis from the origin of the object.
##Example
local ox, oy = this.Or.x, this.Or.y##Notes
By default all objects face south when first placed on the map.
Some objects, such as Entities and anything they carry, and often Consumables, will sometimes update their rotation if moved or while moving.
Some things, such as Materials, cannot be rotated.
Items in .Slot0..7 will be rotated automatically if the object they are in is rotated.
##See Also
-
Pseudo-Types:
- [Location table](Direction table)
- [Velocity table](Velocity table)
-
data/scripts/: -
data/materials.txt:-
Height- negative value flips vertically RotatableRotateType-
Width- negative value flips horizontally
-