IkConstraintData class
Stores the setup pose for an IkConstraint.
See IK constraints in the Spine User Guide.
- Inheritance
-
- Object
- ConstraintData<
spine_ik_constraint_data> - IkConstraintData
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< BoneData> - The bones that are constrained 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.
-
getMix(
) → double - A percentage (0-1) that controls the mix between the constrained and unconstrained rotation.
-
getName(
) → String -
The constraint's name, which is unique across all constraints in the skeleton of the same type.
inherited
-
getOrder(
) → int -
The ordinal of this constraint for the order a skeleton's constraints will be applied by
Skeleton.updateWorldTransform.
inherited
-
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(
) → BoneData - The bone that is the IK target.
-
getUniform(
) → bool - When true and getCompress or getStretch is used, the bone is scaled on both the X and Y axes.
-
isSkinRequired(
) → bool -
When true, Skeleton.updateWorldTransform only updates this constraint if the skin returned by Skeleton.getSkin contains
this constraint.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBendDirection(
int bendDirection) → void -
setCompress(
bool compress) → void -
setIsSkinRequired(
bool isSkinRequired) → void -
inherited
-
setMix(
double mix) → void -
setOrder(
int order) → void -
inherited
-
setSoftness(
double softness) → void -
setStretch(
bool stretch) → void -
setTarget(
BoneData target) → void -
setUniform(
bool uniform) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited