file: AutoRotationComponent.aus

class: AutoRotationComponent

[16:7] extends: Component

Wraps FXGL's AutoRotationComponent (com.almasb.fxgl.dsl.components.AutoRotationComponent), which rotates the entity each tick to face the direction of motion (computed from the previous-to-current position delta). Angle range is -180..180.

Methods