Base class for frames that use an interpolation bezier curve.

Constructor

new(frameCount:Int)

Variables

read onlyframeCount:Float

Methods

apply(skeleton:Skeleton, lastTime:Float, time:Float, firedEvents:Array<Event>, alpha:Float, setupPose:Bool, mixingOut:Bool):Void

getCurvePercent(frameIndex:Int, percent:Float):Float

setCurve(frameIndex:Int, cx1:Float, cy1:Float, cx2:Float, cy2:Float):Void

Sets the control handle positions for an interpolation bezier curve used to transition from this keyframe to the next. cx1 and cx2 are from 0 to 1, representing the percent of time between the two keyframes. cy1 and cy2 are the percent of the difference between the keyframe's values.

setLinear(frameIndex:Int):Void

setStepped(frameIndex:Int):Void