TransformConstraintData

ConstraintDataspine.TransformConstraintData (Class)

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

See Transform constraints in the Spine User Guide.

Instance Members


spine
target: BoneData

spine
mixRotate: Float

spine
mixX: Float

spine
mixY: Float

spine
mixScaleX: Float

spine
mixScaleY: Float

spine
mixShearY: Float

spine
offsetRotation: Float

spine
offsetX: Float

spine
offsetY: Float

spine
offsetScaleX: Float

spine
offsetScaleY: Float

spine
offsetShearY: Float

spine
relative: Bool

spine
local: Bool

The bones that will be modified by this transform constraint.

Returns
spine.support.utils.Array<BoneData>

spine
getTarget(): BoneData

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

Returns
BoneData

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

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

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
getOffsetRotation(): Float

An offset added to the constrained bone rotation.

Returns
Float

spine
setOffsetRotation(offsetRotation: Float): Void
Name Type
offsetRotation Float

spine
getOffsetX(): Float

An offset added to the constrained bone X translation.

Returns
Float

spine
setOffsetX(offsetX: Float): Void
Name Type
offsetX Float

spine
getOffsetY(): Float

An offset added to the constrained bone Y translation.

Returns
Float

spine
setOffsetY(offsetY: Float): Void
Name Type
offsetY Float

spine
getOffsetScaleX(): Float

An offset added to the constrained bone scaleX.

Returns
Float

spine
setOffsetScaleX(offsetScaleX: Float): Void
Name Type
offsetScaleX Float

spine
getOffsetScaleY(): Float

An offset added to the constrained bone scaleY.

Returns
Float

spine
setOffsetScaleY(offsetScaleY: Float): Void
Name Type
offsetScaleY Float

spine
getOffsetShearY(): Float

An offset added to the constrained bone shearY.

Returns
Float

spine
setOffsetShearY(offsetShearY: Float): Void
Name Type
offsetShearY Float

spine
getRelative(): Bool
Returns
Bool

spine
setRelative(relative: Bool): Void
Name Type
relative Bool

spine
getLocal(): Bool
Returns
Bool

spine
setLocal(local: Bool): Void
Name Type
local Bool

spine
new(name: String): Void
Name Type
name String