ConstraintRotationToNodeRotation constructor

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

Creates a new constraint that copies a node's rotation, optionally with a baseRotation added and using dampening.

Implementation

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