This class defines a ParticleAffector which applies randomness to the movement of the particles.
More...
#include <OgreDirectionRandomiserAffector2.h>
|
static void | cleanupDictionary () |
| Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g.
|
|
This class defines a ParticleAffector which applies randomness to the movement of the particles.
- The most important parameter to control the effect is randomness. It controls the range in which changes are applied to each axis of the direction vector. The parameter scope can be used to limit the effect to a certain percentage of the particles.
◆ DirectionRandomiserAffector2()
Ogre::DirectionRandomiserAffector2::DirectionRandomiserAffector2 |
( |
| ) |
|
◆ _cloneFrom()
void Ogre::DirectionRandomiserAffector2::_cloneFrom |
( |
const ParticleAffector2 * |
original | ) |
|
|
overridevirtual |
◆ getKeepVelocity()
bool Ogre::DirectionRandomiserAffector2::getKeepVelocity |
( |
| ) |
const |
Gets flag which detemines whether particle speed is changed.
◆ getRandomness()
Real Ogre::DirectionRandomiserAffector2::getRandomness |
( |
| ) |
const |
Gets the randomness to apply to the particles in a system.
◆ getScope()
Real Ogre::DirectionRandomiserAffector2::getScope |
( |
| ) |
const |
Gets the scope (percentage of particles which are randomised).
◆ getType()
String Ogre::DirectionRandomiserAffector2::getType |
( |
| ) |
const |
|
overridevirtual |
◆ run()
void Ogre::DirectionRandomiserAffector2::run |
( |
ParticleCpuData |
cpuData, |
|
|
size_t |
numParticles, |
|
|
ArrayReal |
timeSinceLast |
|
) |
| const |
|
overridevirtual |
◆ setKeepVelocity()
void Ogre::DirectionRandomiserAffector2::setKeepVelocity |
( |
bool |
keepVelocity | ) |
|
Set flag which detemines whether particle speed is changed.
◆ setRandomness()
void Ogre::DirectionRandomiserAffector2::setRandomness |
( |
Real |
force | ) |
|
Sets the randomness to apply to the particles in a system.
◆ setScope()
void Ogre::DirectionRandomiserAffector2::setScope |
( |
Real |
force | ) |
|
Sets the scope (percentage of particles which are randomised).
The documentation for this class was generated from the following file: