IkConstraint class

Stores the current pose for an IK constraint. An IK constraint adjusts the rotation of 1 or 2 constrained bones so the tip of the last bone is as close to the target bone as possible.

See IK constraints in the Spine User Guide.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBendDirection() int
For two bone IK, controls the bend direction of the IK bones, either 1 or -1.
getBones() List<Bone>
The bones that will be modified by this IK constraint.
getCompress() bool
For one bone IK, when true and the target is too close, the bone is scaled to reach it.
getData() IkConstraintData
The IK constraint's setup pose data.
getMix() double
A percentage (0-1) that controls the mix between the constrained and unconstrained rotation.
getOrder() int
getSoftness() double
For two bone IK, the target bone's distance from the maximum reach of the bones where rotation begins to slow. The bones will not straighten completely until the target is this far out of range.
getStretch() bool
When true and the target is out of range, the parent bone is scaled to reach it.
getTarget() Bone
The bone that is the IK target.
isActive() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBendDirection(int bendDirection) → void
setCompress(bool compress) → void
setIsActive(bool isActive) → void
setMix(double mix) → void
setSoftness(double softness) → void
setStretch(bool stretch) → void
setTarget(Bone target) → void
toString() String
A string representation of this object.
inherited
update() → void
Applies the constraint to the constrained bones.

Operators

operator ==(Object other) bool
The equality operator.
inherited