View source
class CurveTimeline
package spinehaxe.animation
implements Timeline
extended by ColorTimeline, DeformTimeline, IkConstraintTimeline, PathConstraintMixTimeline, PathConstraintPositionTimeline, RotateTimeline, TransformConstraintTimeline, TranslateTimeline
Base class for frames that use an interpolation bezier curve.
Constructor
Variables
Methods
apply(skeleton:Skeleton, lastTime:Float, time:Float, firedEvents:Array<Event>, alpha:Float, setupPose:Bool, mixingOut:Bool):Void
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.