ConstraintRotationToMovement constructor

ConstraintRotationToMovement({
  1. double baseRotation = 0.0,
  2. 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});