Particle(ParticleLayer *layer)
Constructs a new Particle.
void mapToExistingParticle(int index)
Associates this Particle with an existing LiquidFun particle in the b2ParticleSystem.
bool isDestroyed() const
Returns whether or not destroy() was already called.
Definition: Particle.h:46
Wrapper around a LiquidFun particle.
Definition: Particle.h:34
void destroy()
Destroys the associated LiquidFun particle, removing it from the b2ParticleSystem.
void createNewParticle(const QPointF &position, const QPointF &velocity, const QColor &color)
Constructs a new LiquidFun particle in the particle system associated with this wrapper, using the specified position, velocity, and color.
Wrapper around a b2ParticleSystem, which represents an independent layer of particles.
Definition: ParticleLayer.h:32