file: Animatable.aus

class: Animatable

[24:7] extends: FxObj

Wraps an AussomAnimatable (implementation of FXGL's Animatable interface) so Aussom code can make any object animatable by FXGL's AnimationBuilder. Register one callback per property; each property callback must return a JavaFX DoubleProperty wrapper that the animation will drive. The two pivot setters (setScaleOrigin / setRotationOrigin) receive a Point3D wrapper. Example: a = new Animatable(); a.onXProperty(::xProp).onYProperty(::yProp); AnimationBuilder.translate(a.obj).to(...).buildAndPlay();

Methods