float getGravityScale() const
Returns gravityScale.
void radiusChanged()
Emitted when radius changes.
void densityChanged()
Emitted when density changes.
void setRadius(float value)
Sets radius.
float radius
Radius of particles in this layer, corresponding to b2ParticleSystem::SetRadius().
Definition: ParticleLayer.h:38
float gravityScale
Scaling factor on gravity affecting particles in this layer, corresponding to b2ParticleSystem::SetGr...
Definition: ParticleLayer.h:49
void setGravityScale(float value)
Sets gravityScale.
b2ParticleSystem * getParticleSystem() const
Returns the underlying b2ParticleSystem.
Definition: ParticleLayer.h:90
Wrapper around a b2ParticleSystem, which represents an independent layer of particles.
Definition: ParticleLayer.h:32
float density
Density of particles in this layer, corresponding to b2ParticleSystem::SetDensity().
Definition: ParticleLayer.h:43
void gravityScaleChanged()
Emitted when gravityScale changes.
void setDensity(float value)
Sets density.