|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnimatedModel
Method Summary | |
---|---|
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. |
Methods inherited from interface com.badlogic.gdx.graphics.g3d.model.Model |
---|
dispose, getBoundingBox, getSubMesh, getSubMeshes, getSubModel, render, render, setMaterial, setMaterials |
Method Detail |
---|
void 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()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |