Header menu logo Nu

TransformConstraint Type

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.

Constructors

Constructor Description

TransformConstraint(data, skeleton)

Full Usage: TransformConstraint(data, skeleton)

Parameters:
data : TransformConstraintData
skeleton : Skeleton

TransformConstraint(constraint, skeleton)

Full Usage: TransformConstraint(constraint, skeleton)

Parameters:

Copy constructor.

constraint : TransformConstraint
skeleton : Skeleton

Instance members

Instance member Description

this.Active

Full Usage: this.Active

Returns: bool
Modifiers: abstract
Returns: bool

this.Bones

Full Usage: this.Bones

Returns: ExposedList<Bone>

The bones that will be modified by this transform constraint.

Returns: ExposedList<Bone>

this.Data

Full Usage: this.Data

Returns: TransformConstraintData

The transform constraint's setup pose data.

Returns: TransformConstraintData

this.MixRotate

Full Usage: this.MixRotate

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

this.MixScaleX

Full Usage: this.MixScaleX

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

this.MixScaleY

Full Usage: this.MixScaleY

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

this.MixShearY

Full Usage: this.MixShearY

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

this.MixX

Full Usage: this.MixX

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

this.MixY

Full Usage: this.MixY

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

this.SetToSetupPose

Full Usage: this.SetToSetupPose

this.Target

Full Usage: this.Target

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

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract
Returns: string

this.Update

Full Usage: this.Update

Parameters:
Modifiers: abstract
physics : Physics

Type something to start searching.