Package-level declarations
Types
Link copied to clipboard
interface AnimatableModel
An AnimatableModel is an object whose properties can be animated by an ModelAnimation.
Link copied to clipboard
An ModelAnimation is a reusable set of keyframe tracks which represent an animation.
Link copied to clipboard
This class provides support for animating an AnimatableModel If you want to specify a start and end, you should use:
Usage
By default the ModelAnimator can play the full ModelAnimation starting from 0 to the animation duration with:ofAnimation
Content copied to clipboard
ofAnimationTime
Content copied to clipboard
ofAnimationFrame
Content copied to clipboard
ofAnimationFraction
Content copied to clipboard
Use cases
Simple usage
On a very basic 3D model like a single infinite rotating sphere, you should not have to use ModelAnimator but probably instead just call:animate
Content copied to clipboard
Single Model with Single Animation
If you want to animate a single model to a specific timeline position, use:ofAnimationTime
Content copied to clipboard
ofAnimationFrame
Content copied to clipboard
ofAnimationFraction
Content copied to clipboard
- A single time, frame, fraction value will go from the actual position to the desired one
- Two values means form value1 to value2
- More than two values means form value1 to value2 then to value3
ModelAnimator.ofAnimationFraction(model, "VerticalTranslation", 0f, 0.8f, 0f).start();
Content copied to clipboard
Single Model with Multiple Animations
If the model is a character, for example, there may be one ModelAnimation for a walkcycle, a second for a jump, a third for sidestepping and so on.Link copied to clipboard
object NodeAnimator
Link copied to clipboard
object Transition
Link copied to clipboard
object VectorConverters