Particle

An individual instance of a particle

If you want to spawn particles use Window.addParticleBurst

struct Particle {
Texture region;
Vector position;
Vector velocity;
Vector acceleration;
Vector scale;
Vector scale_velocity;
float rotation;
float rotational_velocity;
int lifetime;
ParticleBehavior behavior;
}

Members

Functions

update
void update()

Step a particle forward a frame

Meta