ConstraintRotationToNode constructor

ConstraintRotationToNode({
  1. required Node targetNode,
  2. double baseRotation = 0.0,
  3. double? dampening,
})

Creates a new Constraint that rotates the node towards the targetNode. The baseRotation will be added to the nodes rotation, and dampening can be used to ease the rotation.

Implementation

ConstraintRotationToNode({
  required this.targetNode,
  this.baseRotation = 0.0,
  this.dampening,
});