orientation

class OrientationMixin(
orientation=<Orientation.NORTH: 0.0>,
*,
extra_keys: dict[str,
~typing.Any] | None = None,
)

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 float in the range [0.0, 1.0), where 0.0 is North and increases clockwise.

Raises ValueWarning if 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.