LittleJS 1.28.0

GLTF

GLTFAnimation

GLTFAnimation - One animation of a model: keys that move, turn and scale its nodes over time

  • Play it through the GLTFObject that model.createObject makes

Constructor

new GLTFAnimation(name)gltf.js:107

Make an animation from its channels, as the loader does

name string

@param {Array} channels

Members

Members

channels : Array<Object>gltf.js:118

What it moves: for each, a node, which of its translation, rotation or scale, the key times and values, and how to go between keys, LINEAR, STEP or CUBICSPLINE

duration : numbergltf.js:121

Length in seconds, the time of its last key

name : stringgltf.js:114

Its name in the file, or 'animation' and its number when it has none