#include <OgreLinearForceAffector.h>
Inheritance diagram for Ogre::LinearForceAffector:

Public Types | |
| enum | ForceApplication { FA_AVERAGE, FA_ADD } |
| Choice of how to apply the force vector to particles. More... | |
Public Methods | |
| LinearForceAffector () | |
| Default constructor. More... | |
| void | _affectParticles (ParticleSystem *pSystem, Real timeElapsed) |
| See ParticleAffector. More... | |
| void | setForceVector (const Vector3 &force) |
| Sets the force vector to apply to the particles in a system. More... | |
| Vector3 | getForceVector (void) |
| Gets the force vector to apply to the particles in a system. More... | |
| void | setForceApplication (ForceApplication fa) |
| Sets how the force vector is applied to a particle. More... | |
| ForceApplication | getForceApplication (void) |
| Retrieves how the force vector is applied to a particle. More... | |
| String | getType (void) |
| Returns the name of the type of affector. More... | |
| ParamDictionary * | getParamDictionary (void) |
| Retrieves the parameter dictionary for this class. More... | |
| const ParameterList & | getParameters (void) |
| Retrieves a list of parameters valid for this object. More... | |
| virtual bool | setParameter (const String &name, const String &value) |
| Generic parameter setting method. More... | |
| virtual String | getParameter (const String &name) |
| Generic parameter retrieval method. More... | |
| virtual void | copyParametersTo (StringInterface *dest) |
| Method for copying this object's parameters to another object. More... | |
Static Public Attributes | |
| CmdForceVector | msForceVectorCmd |
| Command objects. More... | |
| CmdForceApp | msForceAppCmd |
Protected Methods | |
| void | addBaseParameters (void) |
| Internal method for setting up the basic parameter definitions for a subclass. More... | |
| bool | createParamDictionary (const String &className) |
| Internal method for creating a parameter dictionary for the class, if it does not already exist. More... | |
Protected Attributes | |
| Vector3 | mForceVector |
| Force vector. More... | |
| ForceApplication | mForceApplication |
| How to apply force. More... | |
| String | mType |
| Name of the type of affector, MUST be initialised by subclasses. More... | |
| String | mParamDictName |
| Class name for this instance to be used as a lookup (must be initialised by subclasses). More... | |
Static Protected Attributes | |
| ParamDictionaryMap | msDictionary |
| Dictionary of parameters. More... | |
The former approach is self-stabilising i.e. once a particle's momentum is equal to the force vector, no further change is made to it's momentum. It also results in a non-linear acceleration of particles. The latter approach is simpler and applies a constant acceleration to particles. However, it is not self-stabilising and can lead to perpetually increasing particle velocities. You choose the approach by calling the setForceApplication method.
|
|
Choice of how to apply the force vector to particles.
|
|
|
Default constructor.
|
|
||||||||||||
|
See ParticleAffector.
Implements Ogre::ParticleAffector. |
|
|
Internal method for setting up the basic parameter definitions for a subclass.
|
|
|
Method for copying this object's parameters to another object.
|
|
|
Internal method for creating a parameter dictionary for the class, if it does not already exist.
|
|
|
Retrieves how the force vector is applied to a particle.
|
|
|
Gets the force vector to apply to the particles in a system.
|
|
|
Retrieves the parameter dictionary for this class.
|
|
|
Generic parameter retrieval method.
|
|
|
Retrieves a list of parameters valid for this object.
|
|
|
Returns the name of the type of affector.
|
|
|
Sets how the force vector is applied to a particle.
|
|
|
Sets the force vector to apply to the particles in a system.
|
|
||||||||||||
|
Generic parameter setting method.
|
|
|
How to apply force.
|
|
|
Force vector.
|
|
|
Class name for this instance to be used as a lookup (must be initialised by subclasses).
|
|
|
Dictionary of parameters.
|
|
|
|
|
|
Command objects.
|
|
|
Name of the type of affector, MUST be initialised by subclasses.
|
Copyright © 2002 by The OGRE Team