public interface AnimatedModel extends Model
| Modifier and Type | Method and Description |
|---|---|
Animation |
getAnimation(java.lang.String name)
Get a specific named animation out of the model.
|
Animation[] |
getAnimations()
Get an array containing all of the animations in this model.
|
void |
setAnimation(java.lang.String animation,
float time,
boolean loop)
Start playing the given animation at the given time in the animation and specify wether or not the animation will loop.
|
dispose, getBoundingBox, getSubMesh, getSubMeshes, getSubModel, render, render, setMaterial, setMaterialsvoid setAnimation(java.lang.String animation,
float time,
boolean loop)
animation - The name of the animation in this Model that you should play.time - The time, in seconds, of the section to start the animation.loop - Whether or not the animation will loop if the time is after the end of the animation. (TODO what happens when
you reach the end of the animation and this is not set?)Animation getAnimation(java.lang.String name)
name - The name of the animation that you wish to get.Animation[] getAnimations()