WaterBodyLogic()
Constructs a WaterBodyLogic.
Creates a body of water formed from WaterParticles.
Definition: WaterBodyLogic.h:30
virtual void update() override
Spawns particles to fill the WaterBody if necessary and decays particles outside of the actor's Body ...
void spawnStrideChanged()
Emitted when spawnStride changes.
virtual void onPausedChanged() override
Notifies WaterBodyLogic to respawn enough particles to fill actor's Body shape if the emitter has bec...
Spawns WaterParticles into the world (i.e. an unbounded WaterParticleSet).
Definition: ParticleEmitterLogic.h:28
float spawnStride
Distance between spawned particles in the WaterBody, as a scale of particle size. ...
Definition: WaterBodyLogic.h:35
virtual int getSupportedMaxEntityCount() const override
Returns the maximum number of particles that can be spawned by the class (i.e. the maximum number of ...
Definition: WaterBodyLogic.h:47
virtual void init() override
Spawns initial particles to fill the body of water.
virtual QRectF getEmitterWorldBounds() override
Returns the bounding box of this emitter in world coordinates.