View on GitHub

3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.

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

(Animation)


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