ConstraintRotationToNode constructor
ConstraintRotationToNode({})
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,
});