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.
Constructor
Variables
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.
mix:Float = 1.0
A percentage (0-1) that controls the mix between the constrained and unconstrained rotations.
softness:Float = 0.0
For two bone IK, the distance from the maximum reach of the bones that rotation will slow.
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.
Methods
apply1(bone:Bone, targetX:Float, targetY:Float, compress:Bool, stretch:Bool, uniform:Bool, alpha:Float):Void
Applies 1 bone IK. The target is specified in the world coordinate system.