Class AnimationController.AnimationDesc
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.utils.AnimationController.AnimationDesc
-
- Enclosing class:
- AnimationController
public static class AnimationController.AnimationDesc extends java.lang.ObjectClass describing how to play andAnimation. You can read the values within this class to get the progress of the animation. Do not change the values. Only valid when the animation is currently played.
-
-
Field Summary
Fields Modifier and Type Field Description AnimationanimationThe animation to be applied.floatdurationThe duration of the animationAnimationController.AnimationListenerlistenerListener which will be informed when the animation is looped or ended.intloopCountThe number of remaining loops, negative for continuous, zero if stopped.floatoffsetThe offset within the animation (animation time = offsetTime + time)floatspeedThe speed at which to play the animation (can be negative), 1.0 for normal speed.floattimeThe current animation time.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnimationDesc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected floatupdate(float delta)
-
-
-
Field Detail
-
listener
public AnimationController.AnimationListener listener
Listener which will be informed when the animation is looped or ended.
-
animation
public Animation animation
The animation to be applied.
-
speed
public float speed
The speed at which to play the animation (can be negative), 1.0 for normal speed.
-
time
public float time
The current animation time.
-
offset
public float offset
The offset within the animation (animation time = offsetTime + time)
-
duration
public float duration
The duration of the animation
-
loopCount
public int loopCount
The number of remaining loops, negative for continuous, zero if stopped.
-
-