class com.babylonhx.animations.Animation

Available on all platforms

Class Fields

static function CreateAndStartAnimation(name:String, node:Node, targetProperty:String, framePerSecond:Int, totalFrame:Int, from:Dynamic, to:Dynamic, ?loopMode:Int, ?easingFunction:EasingFunction, ?onAnimationEnd:Void ->Void):Animatable

static function CreateMergeAndStartAnimation(name:String, node:Node, targetProperty:String, framePerSecond:Int, totalFrame:Int, from:Dynamic, to:Dynamic, ?loopMode:Int, ?easingFunction:EasingFunction, ?onAnimationEnd:Void ->Void):Animatable

Instance Fields

function new(name:String, targetProperty:String, framePerSecond:Int, dataType:Int, ?loopMode:Int):Void

function addEvent(event:AnimationEvent):Void

Add an event to this animation.

function animate(delay:Float, from:Int, to:Int, loop:Bool, speedRatio:Float):Bool

function clone():Animation

function color3InterpolateFunction(startValue:Color3, endValue:Color3, gradient:Float):Color3

function createRange(name:String, from:Float, to:Float):Void

function deleteRange(name:String):Void

function floatInterpolateFunction(startValue:Float, endValue:Float, gradient:Float):Float

function goToFrame(frame:Int):Void

function isStopped():Bool

function matrixInterpolateFunction(startValue:Matrix, endValue:Matrix, gradient:Float):Matrix

function quaternionInterpolateFunction(startValue:Quaternion, endValue:Quaternion, gradient:Float):Quaternion

function removeEvents(frame:Int):Void

Remove all events found at the given frame

null

frame

function reset():Void

function setEasingFunction(easingFunction:EasingFunction):Void

function setKeys(values:Array<BabylonFrame>):Void

function setValue(currentValue:Dynamic):Void

function vector2InterpolateFunction(startValue:Vector2, endValue:Vector2, gradient:Float):Vector2

function vector3InterpolateFunction(startValue:Vector3, endValue:Vector3, gradient:Float):Vector3