class spinehx.Animation

Available on all platforms

Class Fields

static function binarySearch(values:Vector<Float>, target:Float, step:Int):Int

target

After the first and before the last entry.

Instance Fields

function new(name:String, timelines:Array<Timeline>, duration:Float):Void

function apply(skeleton:Skeleton, time:Float, loop:Bool):Void

Poses the skeleton at the specified time for this animation.

function getDuration():Float

Returns the duration of the animation in seconds.

function getName():String

function mix(skeleton:Skeleton, time:Float, loop:Bool, alpha:Float):Void

Poses the skeleton at the specified time for this animation mixed with the current pose. *

alpha

The amount of this animation that affects the current pose.

function setDuration(duration:Float):Void

function toString():String