- class OrientationMixin(name: str, similar_entities: list[str], **kwargs: dict)
Used in trains and wagons to specify their direction.
- property orientation: float
The angle that the current Entity is facing, expressed as a
floatin the range
[0.0, 1.0], where
ValueWarningif set to a value not in the range
This is distinct from
direction, which is used on grid-aligned entities and can only be a max of 8 possible rotations.
Gets the orientation of the Entity.
Sets the orientation of the Entity.
TypeError – If set to anything other than a