Static variables

@:value(3)staticfinalinlineread onlyBEND_DIRECTION:Int = 3

@:value(4)staticfinalinlineread onlyCOMPRESS:Int = 4

@:value(6)staticfinalinlineread onlyENTRIES:Int = 6

@:value(1)staticfinalinlineread onlyMIX:Int = 1

@:value(-3)staticfinalinlineread onlyPREV_BEND_DIRECTION:Int = -3

@:value(-2)staticfinalinlineread onlyPREV_COMPRESS:Int = -2

@:value(-5)staticfinalinlineread onlyPREV_MIX:Int = -5

@:value(-4)staticfinalinlineread onlyPREV_SOFTNESS:Int = -4

@:value(-1)staticfinalinlineread onlyPREV_STRETCH:Int = -1

@:value(-6)staticfinalinlineread onlyPREV_TIME:Int = -6

@:value(2)staticfinalinlineread onlySOFTNESS:Int = 2

@:value(5)staticfinalinlineread onlySTRETCH:Int = 5

Constructor

new(frameCount:Int)

Variables

finalframes:Array<Float>

The time in seconds, mix, softness, bend direction, compress, and stretch for each key frame.

ikConstraintIndex:Int

The index of the IK constraint slot in Skeleton.ikConstraints that will be changed.

Methods

setFrame(frameIndex:Int, time:Float, mix:Float, softness:Float, bendDirection:Int, compress:Bool, stretch:Bool):Void

Sets the time in seconds, mix, softness, bend direction, compress, and stretch for the specified key frame.

Inherited Variables

Inherited Methods

Defined by CurveTimeline

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.

setLinear(frameIndex:Int):Void

Sets the specified key frame to linear interpolation.

setStepped(frameIndex:Int):Void

Sets the specified key frame to stepped interpolation.