Animatable

interface Animatable<T>

Models if a model can be animated

Inheritors

Properties

Link copied to clipboard

All animations Identifier maps to the animation

Link copied to clipboard
abstract var currentAnimation: Animation<T>?

The current animation if one is running

Functions

Link copied to clipboard
abstract fun addAnimation(identifier: String, animation: Animation<T>)

Adds the animation

Link copied to clipboard
abstract fun isAnimating(): Boolean

Whether the object is currently inside an animation

Link copied to clipboard
abstract fun startAnimation(animation: Animation<T>)

Starts the given animation, but will not save it

abstract fun startAnimation(identifier: String)

Starts the animation with the given identifier