Animation
Extends Clonable
A animation contains transformation tracks for a set of joints
Constructors
Animation:newAnimation(frameTable)
Creates a new, empty animation from a dictionary of joint names and animation frames
Arguments
frameTable
(<string, AnimationFrame[]>)
Returns
Fields
frames
(<string, AnimationFrame[]>)
Methods
Animation.interpolateFrames(first, second, blend)
static
Linear interpolation between two frames
Arguments
first
(AnimationFrame)
second
(AnimationFrame)
blend
(number)
Animation:getPose(time)
Returns a new animated pose at a specific time stamp
Arguments
time
(number)
Returns
(Pose)
Animation:getLength()
Returns the length in seconds
Clonable:clone()
Slow and deep clone
Clonable:instance()
Creates an fast instance