Stores the setup pose for an {@link IkConstraint}.

See IK constraints in the Spine User Guide.

Constructor

new(name:String)

Variables

@:value(1)bendDirection:Int = 1

Controls the bend direction of the IK bones, either 1 or -1.

@:value(new Array<BoneData>())bones:Array<BoneData> = new Array<BoneData>()

The bones that are constrained by this IK constraint.

@:value(false)compress:Bool = false

When true and only a single bone is being constrained, if the target is too close, the bone is scaled to reach it.

@:value(1.0)mix:Float = 1.0

A percentage (0-1) that controls the mix between the constrained and unconstrained rotations.

@:value(0.0)softness:Float = 0.0

For two bone IK, the distance from the maximum reach of the bones that rotation will slow.

@:value(false)stretch:Bool = false

When true, if the target is out of range, the parent bone is scaled to reach it. If more than one bone is being constrained and the parent bone has local nonuniform scale, stretch is not applied.

target:BoneData

The bone that is the IK target.

@:value(false)uniform:Bool = false

When true, only a single bone is being constrained, and {@link #getCompress()} or {@link #getStretch()} is used, the bone is scaled on both the X and Y axes.

Inherited Variables

Defined by ConstraintData

name:String

order:Int

Inherited Methods