PathConstraintData

ConstraintDataspine.PathConstraintData (Class)

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

See Path constraints in the Spine User Guide.

Instance Members


spine
target: SlotData

spine
positionMode: PositionMode

spine
spacingMode: SpacingMode

spine
rotateMode: RotateMode

spine
offsetRotation: Float

spine
position: Float

spine
spacing: Float

spine
mixRotate: Float

spine
mixX: Float

spine
mixY: Float

The bones that will be modified by this path constraint.

Returns
spine.support.utils.Array<BoneData>

spine
getTarget(): SlotData

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

Returns
SlotData

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

spine
getPositionMode(): PositionMode

The mode for positioning the first bone on the path.

Returns
PositionMode

spine
setPositionMode(positionMode: PositionMode): Void
Name Type
positionMode PositionMode

spine
getSpacingMode(): SpacingMode

The mode for positioning the bones after the first bone on the path.

Returns
SpacingMode

spine
setSpacingMode(spacingMode: SpacingMode): Void
Name Type
spacingMode SpacingMode

spine
getRotateMode(): RotateMode

The mode for adjusting the rotation of the bones.

Returns
RotateMode

spine
setRotateMode(rotateMode: RotateMode): Void
Name Type
rotateMode RotateMode

spine
getOffsetRotation(): Float

An offset added to the constrained bone rotation.

Returns
Float

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

spine
getPosition(): Float

The position along the path.

Returns
Float

spine
setPosition(position: Float): Void
Name Type
position Float

spine
getSpacing(): Float

The spacing between bones.

Returns
Float

spine
setSpacing(spacing: Float): Void
Name Type
spacing Float

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
new(name: String): Void
Name Type
name String