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 |
Full Usage:
PathConstraint(data, skeleton)
Parameters:
PathConstraintData
skeleton : Skeleton
|
|
Full Usage:
PathConstraint(constraint, skeleton)
Parameters:
PathConstraint
skeleton : Skeleton
|
Copy constructor.
|
Instance members
Instance member | Description |
Full Usage:
this.Active
Returns: bool
Modifiers: abstract |
|
|
The bones that will be modified by this path constraint.
|
|
The path constraint's setup pose data.
|
Full Usage:
this.MixRotate
|
A percentage (0-1) that controls the mix between the constrained and unconstrained rotations. |
Full Usage:
this.MixX
|
A percentage (0-1) that controls the mix between the constrained and unconstrained translation X. |
Full Usage:
this.MixY
|
A percentage (0-1) that controls the mix between the constrained and unconstrained translation Y. |
Full Usage:
this.Position
|
The position along the path. |
Full Usage:
this.SetToSetupPose
|
|
Full Usage:
this.Spacing
|
The spacing between bones. |
Full Usage:
this.Target
|
The slot whose path attachment will be used to constrained the bones. |
Full Usage:
this.ToString
Returns: string
Modifiers: abstract |
|
|
|
Static members
Static member | Description |
Full Usage:
PathConstraint.ArraysFill(a, fromIndex, toIndex, val)
Parameters:
float32[]
fromIndex : int
toIndex : int
val : float32
|
|