TransformConstraint

spine.TransformConstraint (Class)
Implements: Updatable

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.

Instance Members



spine
target: Bone

spine
mixRotate: Float

spine
mixX: Float

spine
mixY: Float

spine
mixScaleX: Float

spine
mixScaleY: Float

spine
mixShearY: Float

spine
active: Bool


spine
update(): Void

Applies the constraint to the constrained bones.


The bones that will be modified by this transform constraint.

Returns
spine.support.utils.Array<Bone>

spine
getTarget(): Bone

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

Returns
Bone

spine
setTarget(target: Bone): Void
Name Type
target Bone

spine
getMixRotate(): Float

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

Returns
Float

spine
setMixRotate(mixRotate: Float): Void
Name Type
mixRotate Float

spine
getMixX(): Float

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

Returns
Float

spine
setMixX(mixX: Float): Void
Name Type
mixX Float

spine
getMixY(): Float

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

Returns
Float

spine
setMixY(mixY: Float): Void
Name Type
mixY Float

spine
getMixScaleX(): Float

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

Returns
Float

spine
setMixScaleX(mixScaleX: Float): Void
Name Type
mixScaleX Float

spine
getMixScaleY(): Float

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

Returns
Float

spine
setMixScaleY(mixScaleY: Float): Void
Name Type
mixScaleY Float

spine
getMixShearY(): Float

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

Returns
Float

spine
setMixShearY(mixShearY: Float): Void
Name Type
mixShearY Float

spine
isActive(): Bool
Returns
Bool

spine
getData(): TransformConstraintData

The transform constraint's setup pose data.

Returns
TransformConstraintData

spine
toString(): String
Returns
String

spine
new(data: TransformConstraintData, skeleton: Skeleton): Void
Name Type
data TransformConstraintData
skeleton Skeleton

Private Members

spine
applyAbsoluteWorld(): Void

spine
applyRelativeWorld(): Void

spine
applyAbsoluteLocal(): Void

spine
applyRelativeLocal(): Void