Model loading · class

Animation

Everything that animates a datablock: its active action, then its NLA tracks bottom to top.

Explained in Importing models.

class Animation
import { Animation } from '@driftengine/assets';

Constructor

new

constructor(id: BlendStruct)
ParameterTypeDescription
idBlendStruct

Properties

NameTypeDescription
unreadreadonlySet<string>

Accessors

NameTypeDescription
animatedgetboolean
rangeget[number, number]The scene frames anything here animates over.

Methods

values

values(frame: number, out: Map<string, number>): Map<string, number>

Every animated value at frame, by path[index]; the last source to speak wins.

ParameterTypeDescription
framenumber
outMap<string, number>