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(false)active:Bool = false

bones:Array<Bone>

The bones that will be modified by this transform constraint.

data:TransformConstraintData

The transform constraint's setup pose data.

@:value(0.0)rotateMix:Float = 0.0

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

@:value(0.0)scaleMix:Float = 0.0

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

@:value(0.0)shearMix:Float = 0.0

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

target:Bone

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

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

@:value(0.0)translateMix:Float = 0.0

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

Methods

apply():Void

Applies the constraint to the constrained bones.

isActive():Bool

update():Void