Default Animations
Animations (or Transformers) manipulate the coordinates generated by a shape over time. Below are the built-in animations accessible via the Animations and Billboarding utility classes.
Spin
Methods: Animations.spinX(), Animations.spinY(), Animations.spinZ()
Rotates the entire particle shape around a specific axis over a set duration.
Parameter | Information |
|---|---|
| The total amount of rotation to perform (e.g., |
| The lifespan of the animation sequence in server ticks. |
| The |
Scale
Method: Animations.scale()
Grows or shrinks the particle shape from a starting size to an ending size.
Parameter | Information |
|---|---|
| The initial scale multiplier applied at tick 0. |
| The final scale multiplier applied at the end of the duration. |
| The total time in ticks for the scaling process to complete. |
| The |
Translate
Method: Animations.translate()
Moves the particle shape towards a target directional offset.
Parameter | Information |
|---|---|
| The final |
| The total time in ticks for the translation to complete. |
| The |
Breathe
Method: Animations.breathe()
Creates a cyclical "breathing" animation that repeatedly pulses the shape's scale using a sine wave.
Parameter | Information |
|---|---|
| The minimum scale factor at the bottom of the pulse (exhale). |
| The maximum scale factor at the peak of the pulse (inhale). |
| The number of ticks required to complete one full oscillation loop. |
Billboard Face (Static)
Method: Billboarding.face()
Calculates a static rotation to make the particle shape face a specific target coordinate once upon initialization.
Parameter | Information |
|---|---|
| The starting |
| The |
Billboard Face (Dynamic)
Method: Billboarding.faceDynamic()
Continuously recalculates rotation every tick to ensure the shape is always facing a moving target (e.g., a player's camera).
Parameter | Information |
|---|---|
| A |
| A |