class
#include <OE/Graphics/2D/ParticleModules.hpp>
ShapeModule Defines the shape from which the particles can be emitted, and their initial direction and speed.
Contents
Base classes
- class ParticleModule
- Base particle module.
Public types
Constructors, destructors, conversion operators
- ShapeModule(ParticleEmitter* emitter)
Public functions
- void setShape(Shape shape)
- void setRadius(float radius)
- void setInitialSpeed(float speed)
-
void setAdditionalVelocity(const Math::
Vec2f& velocity) - void initParticle(Particle* particle) override
- Called when a particle is created.
- void update(float deltaTime) override
- Called periodically to update the particles.