A Constraint that copies a node's rotation, optionally with dampening.
- Inheritance
- Object
- Constraint
- ConstraintRotationToNodeRotation
Constructors
- ConstraintRotationToNodeRotation(Node targetNode, { double baseRotation: 0.0, double dampening })
-
Creates a new constraint that copies a node's rotation, optionally with a baseRotation added and using dampening.
Properties
- baseRotation → double
-
The base rotation will be added to the rotation that copied from the targetNode
read-only - dampening → double
-
The filter factor used when constraining the rotation of the node. Valid values are in the range 0.0 to 1.0
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - targetNode → Node
-
The node to copy the rotation from
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
constrain(
Node node, double dt) → void -
Called after update is complete, if the constraint has been added to a
Node
. Override this method to modify the node's property according to the constraint. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
preUpdate(
Node node, double dt) → void -
Called before the node's update method is called. This method can be overridden to create setup work that needs to happen before the the node is updated, e.g. to calculate the node's speed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited