Stores the current pose for a transform constraint. A transform constraint adjusts the world transform of the constrained bones to match that of the target bone.

See Transform constraints in the Spine User Guide.

Constructor

Variables

@:value(0)mixRotate:Float = 0

@:value(0)mixX:Float = 0

@:value(0)mixY:Float = 0

@:value(0)mixScaleX:Float = 0

@:value(0)mixScaleY:Float = 0

@:value(0)mixShearY:Float = 0

@:value(false)active:Bool = false

@:value(new Vector2())temp:Vector2 = new Vector2()

Methods

update():Void

Applies the constraint to the constrained bones.

getBones():Array<Bone>

The bones that will be modified by this transform constraint.

getTarget():Bone

The target bone whose world transform will be copied to the constrained bones.

getMixRotate():Float

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

getMixX():Float

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

getMixY():Float

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

getMixScaleX():Float

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

getMixScaleY():Float

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

getMixShearY():Float

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

getData():TransformConstraintData

The transform constraint's setup pose data.