ParticleModificator

Inherited: None

Description

The ParticleModificator class serves as a base class for particle system modifiers, providing virtual methods for modifying particle data during spawn and update operations. The class also includes methods for loading modification data from a variant list. Users can extend this class to create custom particle modifiers by overriding the virtual methods and providing specific modification behavior.

Public Methods

void

loadData (const VariantList & list)

void

spawnParticle (ParticleData & data)

void

updateParticle (ParticleData & data, float dt)

Static Methods

None

Methods Description

void ParticleModificator::loadData (VariantList & list)

Loads serialized modification data from a variant list.


void ParticleModificator::spawnParticle (ParticleData & data)

Virtual method for modifying particle data during particle spawn.


void ParticleModificator::updateParticle (ParticleData & data, float dt)

Virtual method for modifying particle data during each frame update. Parameter dt used to pass delta time from Timer.