ConstraintRotationToMovement constructor

ConstraintRotationToMovement({double baseRotation: 0.0, double dampening })

Creates a new constraint the aligns a nodes rotation to its movement vector. A baseRotation and dampening can optionally be set.

Implementation

ConstraintRotationToMovement({this.baseRotation: 0.0, this.dampening});