Creates a new constraint the aligns a nodes rotation to its movement vector. A baseRotation and dampening can optionally be set.
Source
ConstraintRotationToMovement({this.baseRotation: 0.0, this.dampening});
Creates a new constraint the aligns a nodes rotation to its movement vector. A baseRotation and dampening can optionally be set.
ConstraintRotationToMovement({this.baseRotation: 0.0, this.dampening});