This class defines a ParticleAffector which applies randomness to the movement of the particles.
More...
#include <OgreDirectionRandomiserAffector.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.
◆ DirectionRandomiserAffector()
Ogre::DirectionRandomiserAffector::DirectionRandomiserAffector |
( |
ParticleSystem * |
psys | ) |
|
◆ _affectParticles()
void Ogre::DirectionRandomiserAffector::_affectParticles |
( |
ParticleSystem * |
pSystem, |
|
|
Real |
timeElapsed |
|
) |
| |
|
overridevirtual |
◆ getKeepVelocity()
bool Ogre::DirectionRandomiserAffector::getKeepVelocity |
( |
| ) |
const |
Gets flag which detemines whether particle speed is changed.
◆ getRandomness()
Real Ogre::DirectionRandomiserAffector::getRandomness |
( |
| ) |
const |
Gets the randomness to apply to the particles in a system.
◆ getScope()
Real Ogre::DirectionRandomiserAffector::getScope |
( |
| ) |
const |
Gets the scope (percentage of particles which are randomised).
◆ setKeepVelocity()
void Ogre::DirectionRandomiserAffector::setKeepVelocity |
( |
bool |
keepVelocity | ) |
|
Set flag which detemines whether particle speed is changed.
◆ setRandomness()
void Ogre::DirectionRandomiserAffector::setRandomness |
( |
Real |
force | ) |
|
Sets the randomness to apply to the particles in a system.
◆ setScope()
void Ogre::DirectionRandomiserAffector::setScope |
( |
Real |
force | ) |
|
Sets the scope (percentage of particles which are randomised).
◆ msKeepVelocityCmd
◆ msRandomnessCmd
◆ msScopeCmd
CmdScope Ogre::DirectionRandomiserAffector::msScopeCmd |
|
static |
The documentation for this class was generated from the following file: