Blends multiple animations points placed on a virtual 2d plane

Constructor

new(name:String, points:Array<BlendSpace2DPoint>)

Variables

@:value(false)scaleSpeedOutsideOfBounds:Bool = false

If true, the speed of the blended animation will be scaled when the x/y points lies outside all of the blend space triangles, based on the distance of the point from the center of the graph (0,0) and the distance of the closest point inside of the graph to the center

@:value(0.0)x:Float = 0.0

X Position of the blend point in the Blendspace

@:value(0.0)xSmooth:Float = 0.0

Smooth factor for the X value position over time

@:value(0.0)y:Float = 0.0

Y Position of the blend point in the BlendSpace

@:value(0.0)ySmooth:Float = 0.0

Smooth factor for the Y value position over time

Methods

Inherited Variables

Defined by Animation

read onlyevents:Array<Array<String>>

read onlyframe:Float

read onlyframeCount:Int

loop:Bool

name:String

onAnimEnd:() ‑> Void

onEvent:String ‑> Void

pause:Bool

read onlysampling:Float

speed:Float

Inherited Methods

Defined by Animation

addEvent(frame:Int, data:String):Void

getDuration():Float

getEventTime(id:String):Null<Float>

getEvents():Array<Array<String>>

getPropValue(objectName:String, propName:String):Null<Float>

Returns the current value of animation property for the given object, or null if not found.

removeEvent(frame:Int, data:String):Void

setEvents(el:Iterable<{frame:Int, data:String}>):Void

Register a callback function that will be called once when a frame is reached.

setFrame(f:Float):Void

toString():String