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.

Constructor

Variables

@:value(0)position:Float = 0

@:value(0)spacing:Float = 0

@:value(0)mixRotate:Float = 0

@:value(0)mixX:Float = 0

@:value(0)mixY:Float = 0

@:value(false)active:Bool = false

Methods

update():Void

Applies the constraint to the constrained bones.

getPosition():Float

The position along the path.

getSpacing():Float

The spacing between bones.

getMixRotate():Float

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

getMixX():Float

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

getMixY():Float

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

getBones():Array<Bone>

The bones that will be modified by this path constraint.

getTarget():Slot

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

getData():PathConstraintData

The path constraint's setup pose data.