Constructor
new KinematicsAnimationGroup()
Classes
Methods
addAnimation(animation) → {component}
Adds a new animation reference to this animation group
Parameters:
Name | Type | Description |
---|---|---|
animation |
uuid | Animation Template ID |
Returns:
Component that is associated with the animation template
- Type
- component
getAnimationByIndex(i) → {KinematicsComponent}
Retrieves an animation references by index
Parameters:
Name | Type | Description |
---|---|---|
i |
number | Index of animation references |
Returns:
Animation reference
- Type
- KinematicsComponent
getAnimations() → {array}
Retrieves all animation references associated with this animation group An animation reference consists of the animation template id and the component it is associated with
Returns:
Array of animation references
- Type
- array
getName() → {string}
Retrieves the name of the animation group
Returns:
Name
- Type
- string
play()
Plays all animations associated to this animation group
setName(name)
Sets the name of the animation group
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name |