Basics
Guides
API Reference
Basics
Guides
API Reference
[25:7] extends: Poolable
Wraps FXGL's Particle (com.almasb.fxgl.particle.Particle), the
per-particle handle owned by a ParticleEmitter. Particles are
pooled — the engine instantiates and recycles them — so the
Aussom wrapper is mostly for adopting an AJO inside an emitter
callback (setSpawnPointFunction, control consumer, etc.).
The public surface is small:
Particle ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing Particle AussomJavaObject.
getPosition ()
Returns the current position as a Vec2 wrapper.
getVelocity ()
Returns the velocity (pixels/sec) as a Vec2 wrapper.
getAcceleration ()
Returns the acceleration (pixels/sec^2) as a Vec2 wrapper.
getLife ()
Returns the remaining life in seconds.
setLife (double V)
Sets the remaining life in seconds.
getView ()
Returns the JavaFX Node used to render the particle.
A raw JavaFX Node AJO (Ellipse or ImageView).reset ()
Returns the particle to the pool.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.