Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: FxObj
Wraps FXGL's AnimationBuilder.RotationAnimationBuilder, the subbuilder returned by AnimationBuilder.rotate(entities). Use from / to to set start and end angles in degrees (2D rotation about the Z axis) and origin to set the rotation pivot, then build or buildAndPlay.
RotationAnimationBuilder ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing RotationAnimationBuilder AussomJavaObject.
Ajo is an AussomJavaObject around the FXGL subbuilder.A new wrapper.from (double Degrees)
Sets the start angle in degrees (2D rotation about Z).
Degrees is the start angle.this objectto (double Degrees)
Sets the end angle in degrees (2D rotation about Z).
Degrees is the end angle.this objectorigin (double X, double Y)
Sets the rotation pivot.
X is the pivot X.Y is the pivot Y.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.
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.