Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps FXGL's AnimationBuilder.TranslationAnimationBuilder, the subbuilder returned by AnimationBuilder.translate(entities). Use from / to to set the translation endpoints and build or buildAndPlay to realize the animation. Not directly constructed -- obtain from AnimationBuilder.translate(entitiesList).
TranslationAnimationBuilder ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing TranslationAnimationBuilder AussomJavaObject.
Ajo is an AussomJavaObject around the FXGL subbuilder.A new wrapper.from (double X, double Y)
Sets the start point for the translation.
X is the start X.Y is the start Y.this objectto (double X, double Y)
Sets the end point for the translation.
X is the end X.Y is the end Y.this objectfrom3D (double X, double Y, double Z)
Sets the start point in 3D space.
X is the start X.Y is the start Y.Z is the start Z.this objectto3D (double X, double Y, double Z)
Sets the end point in 3D space.
X is the end X.Y is the end Y.Z is the end Z.this objectalongPath (object ShapeObj)
Translates along a JavaFX Shape (Line / CubicCurve / QuadCurve / Path).
ShapeObj is an AussomJavaObject around a JavaFX Shape.this objectbuild ()
Builds the Animation without playing it.
An Animation wrapper.buildAndPlay ()
Builds the Animation and starts it in the scene this builder was created with (typically the running game scene from fxgl.animationBuilder()).
this objectbuildAndPlayIn (object SceneObj)
Builds the Animation and starts it in the supplied scene.
SceneObj is a Scene wrapper.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.