LittleJS 1.30.1

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:135

Make an animation from its channels, as the loader does

name string

@param {Array} channels

Members

Members

channels : Array<GLTFChannel>gltf.js:146

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:149

Length in seconds, the time of its last key

name : stringgltf.js:142

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