PathConstraint
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 {@link PathAttachment}.
See Path constraints in the Spine User Guide.
Instance Members
Applies the constraint to the constrained bones.
computeWorldPositions(path: spine.attachments.PathAttachment, spacesCount: Int, tangents: Bool): spine.support.utils.FloatArray| Name | Type |
|---|---|
path |
spine.attachments.PathAttachment |
spacesCount |
Int |
tangents |
Bool |
| Returns |
|---|
| spine.support.utils.FloatArray |
The position along the path.
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
position |
Float |
The spacing between bones.
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
spacing |
Float |
A percentage (0-1) that controls the mix between the constrained and unconstrained rotation.
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
mixRotate |
Float |
A percentage (0-1) that controls the mix between the constrained and unconstrained translation X.
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
mixX |
Float |
A percentage (0-1) that controls the mix between the constrained and unconstrained translation Y.
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
mixY |
Float |
The bones that will be modified by this path constraint.
| Returns |
|---|
| spine.support.utils.Array<Bone> |
The slot whose path attachment will be used to constrained the bones.
| Returns |
|---|
| Slot |
| Name | Type |
|---|---|
target |
Slot |
| Returns |
|---|
| Bool |
The path constraint's setup pose data.
| Returns |
|---|
| PathConstraintData |
| Returns |
|---|
| String |
| Name | Type |
|---|---|
data |
PathConstraintData |
skeleton |
Skeleton |
Private Members
addBeforePosition(p: Float, temp: spine.support.utils.FloatArray, i: Int, out: spine.support.utils.FloatArray, o: Int): Void| Name | Type |
|---|---|
p |
Float |
temp |
spine.support.utils.FloatArray |
i |
Int |
out |
spine.support.utils.FloatArray |
o |
Int |
addAfterPosition(p: Float, temp: spine.support.utils.FloatArray, i: Int, out: spine.support.utils.FloatArray, o: Int): Void| Name | Type |
|---|---|
p |
Float |
temp |
spine.support.utils.FloatArray |
i |
Int |
out |
spine.support.utils.FloatArray |
o |
Int |
addCurvePosition(p: Float, x1: Float, y1: Float, cx1: Float, cy1: Float, cx2: Float, cy2: Float, x2: Float, y2: Float, out: spine.support.utils.FloatArray, o: Int, tangents: Bool): Void| Name | Type |
|---|---|
p |
Float |
x1 |
Float |
y1 |
Float |
cx1 |
Float |
cy1 |
Float |
cx2 |
Float |
cy2 |
Float |
x2 |
Float |
y2 |
Float |
out |
spine.support.utils.FloatArray |
o |
Int |
tangents |
Bool |