Stores the setup pose for a {@link TransformConstraint}.

See Transform constraints in the Spine User Guide.

Constructor

new(name:String)

Variables

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

@: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(0)offsetRotation:Float = 0

@:value(0)offsetX:Float = 0

@:value(0)offsetY:Float = 0

@:value(0)offsetScaleX:Float = 0

@:value(0)offsetScaleY:Float = 0

@:value(0)offsetShearY:Float = 0

@:value(false)relative:Bool = false

@:value(false)local:Bool = false

Methods

getBones():Array<BoneData>

The bones that will be modified by this transform constraint.

getTarget():BoneData

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 Y.

getMixShearY():Float

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

getOffsetRotation():Float

An offset added to the constrained bone rotation.

setOffsetRotation(offsetRotation:Float):Void

getOffsetX():Float

An offset added to the constrained bone X translation.

getOffsetY():Float

An offset added to the constrained bone Y translation.

getOffsetScaleX():Float

An offset added to the constrained bone scaleX.

setOffsetScaleX(offsetScaleX:Float):Void

getOffsetScaleY():Float

An offset added to the constrained bone scaleY.

setOffsetScaleY(offsetScaleY:Float):Void

getOffsetShearY():Float

An offset added to the constrained bone shearY.

setOffsetShearY(offsetShearY:Float):Void

Inherited Variables

Defined by ConstraintData

@:value(0)order:Int = 0

@:value(false)skinRequired:Bool = false

Inherited Methods

Defined by ConstraintData

getName():String

The constraint's name, which is unique across all constraints in the skeleton of the same type.

getOrder():Int

The ordinal of this constraint for the order a skeleton's constraints will be applied by {@link Skeleton#updateWorldTransform()}.

getSkinRequired():Bool

When true, {@link Skeleton#updateWorldTransform()} only updates this constraint if the {@link Skeleton#getSkin()} contains this constraint.

See {@link Skin#getConstraints()}.

setSkinRequired(skinRequired:Bool):Void