Header menu logo Nu

PathConstraint Type

Stores the current pose for a path constraint. A path constraint adjusts the rotation, translation, and scale of the constrained bones so they follow a PathAttachment.

See Path constraints in the Spine User Guide.

Constructors

Constructor Description

PathConstraint(data, skeleton)

Full Usage: PathConstraint(data, skeleton)

Parameters:
data : PathConstraintData
skeleton : Skeleton

PathConstraint(constraint, skeleton)

Full Usage: PathConstraint(constraint, skeleton)

Parameters:

Copy constructor.

constraint : PathConstraint
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 path constraint.

Returns: ExposedList<Bone>

this.Data

Full Usage: this.Data

Returns: PathConstraintData

The path constraint's setup pose data.

Returns: PathConstraintData

this.MixRotate

Full Usage: this.MixRotate

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

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

Full Usage: this.Position

The position along the path.

this.SetToSetupPose

Full Usage: this.SetToSetupPose

this.Spacing

Full Usage: this.Spacing

The spacing between bones.

this.Target

Full Usage: this.Target

The slot whose path attachment will be used to constrained the bones.

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract
Returns: string

this.Update

Full Usage: this.Update

Parameters:
Modifiers: abstract
physics : Physics

Static members

Static member Description

PathConstraint.ArraysFill(a, fromIndex, toIndex, val)

Full Usage: PathConstraint.ArraysFill(a, fromIndex, toIndex, val)

Parameters:
    a : float32[]
    fromIndex : int
    toIndex : int
    val : float32

a : float32[]
fromIndex : int
toIndex : int
val : float32

Type something to start searching.