Changes a path constraint's PathConstraint.spacing.
PathConstraint.spacing
new(frameCount:Int)
finalframes:Array<Float>
The time in seconds and path constraint position for each key frame.
pathConstraintIndex:Int
The index of the path constraint slot in Skeleton.pathConstraints that will be changed.
Skeleton.pathConstraints
setFrame(frameIndex:Int, time:Float, value:Float):Void
Sets the time in seconds and path constraint position for the specified key frame.
getCurvePercent(frameIndex:Int, percent:Float):Float
Returns the interpolated percentage for the specified key frame and linear percentage.
getCurveType(frameIndex:Int):Int
Returns the interpolation type for the specified key frame.
Returns:
Linear is 0, stepped is 1, Bezier is 2.
getFrameCount():Int
The number of key frames for this timeline.
setCurve(frameIndex:Int, cx1:Float, cy1:Float, cx2:Float, cy2:Float):Void
Sets the specified key frame to Bezier interpolation. cx1 and cx2 are from 0 to 1, representing the percent of time between the two key frames. cy1 and cy2 are the percent of the difference between the key frame's values.
cx1
cx2
cy1
cy2
setLinear(frameIndex:Int):Void
Sets the specified key frame to linear interpolation.
setStepped(frameIndex:Int):Void
Sets the specified key frame to stepped interpolation.