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)

Parameters:
NameTypeDescription
namestring

@param {Array} channels

Members

channels :Array.<Object>

Type:
  • Array.<Object>
Properties
TypeDescription
Array.<Object>

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

Type:
  • number
Properties
TypeDescription
number

Length in seconds, the time of its last key

name

Properties
TypeDescription
string

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