Abstract base class for particle affectors. More...
Public Types | |
typedef std::tr1::shared_ptr < Affector > | Ptr |
Shared pointer type referring to derivates of Affector. | |
Public Member Functions | |
virtual | ~Affector () |
Virtual destructor. | |
virtual void | Affect (Particle &particle, float dt)=0 |
Affects particles. |
Abstract base class for particle affectors.
Affectors are classes that influence emitted particles over time.
Inherit from this class and override Affect() to implement custom affectors.
virtual void thor::Affector::Affect | ( | Particle & | particle, |
float | dt | ||
) | [pure virtual] |
Affects particles.
particle | The particle currently being affected. |
dt | Time interval during which particles are affected. |
Implemented in thor::ColorAffector, thor::FadeOutAffector, thor::FadeInAffector, thor::TorqueAffector, and thor::ForceAffector.