ConstraintRotationToNode constructor

ConstraintRotationToNode(Node targetNode, { double baseRotation: 0.0, 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(this.targetNode, {this.baseRotation: 0.0, this.dampening});