OrbitEngine::Graphics::ShapeModule class

Defines the shape from which the particles can be emitted, and their initial direction and speed.

Base classes

class ParticleModule
Base particle module.

Public types

enum Shape { POINT, CIRCLE }

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.