orientation¶
- class OrientationMixin( )¶
Used in trains and wagons to specify their direction.
- orientation : Orientation¶
Serialized
This attribute is imported/exported from blueprint strings.
The angle that the current Entity is facing, expressed as a
floatin the range[0.0, 1.0), where0.0is North and increases clockwise.Raises
ValueWarningif set to a value not in the range[0.0, 1.0).Note
This is distinct from
direction, which is used on grid-aligned entities and can only be a max of 16 possible rotations.