OpenMW
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types
GravityAffector Class Reference

List of all members.

Classes

class  CmdDirection
class  CmdForce
class  CmdForceType
class  CmdPosition

Public Member Functions

Ogre::ParticleSystem * getPartSys ()
 GravityAffector (Ogre::ParticleSystem *psys)
void _affectParticles (Ogre::ParticleSystem *psys, Ogre::Real timeElapsed)
void setForce (Ogre::Real force)
Ogre::Real getForce () const
void setForceType (ForceType type)
ForceType getForceType () const
void setDirection (const Ogre::Vector3 &dir)
const Ogre::Vector3 & getDirection () const
void setPosition (const Ogre::Vector3 &pos)
const Ogre::Vector3 & getPosition () const

Public Attributes

Ogre::Bone * mEmitterBone
Ogre::Bone * mParticleBone

Static Public Attributes

static CmdForce msForceCmd
static CmdForceType msForceTypeCmd
static CmdDirection msDirectionCmd
static CmdPosition msPositionCmd

Protected Member Functions

void applyWindForce (Ogre::ParticleSystem *psys, Ogre::Real timeElapsed)
void applyPointForce (Ogre::ParticleSystem *psys, Ogre::Real timeElapsed)

Protected Attributes

float mForce
ForceType mForceType
Ogre::Vector3 mPosition
Ogre::Vector3 mDirection

Private Types

enum  ForceType { Type_Wind, Type_Point }

Member Enumeration Documentation

Enumerator:
Type_Wind 
Type_Point 

Constructor & Destructor Documentation

GravityAffector::GravityAffector ( Ogre::ParticleSystem *  psys) [inline]

Default constructor.


Member Function Documentation

void GravityAffector::_affectParticles ( Ogre::ParticleSystem *  psys,
Ogre::Real  timeElapsed 
) [inline]

See Ogre::ParticleAffector.

void GravityAffector::applyPointForce ( Ogre::ParticleSystem *  psys,
Ogre::Real  timeElapsed 
) [inline, protected]
void GravityAffector::applyWindForce ( Ogre::ParticleSystem *  psys,
Ogre::Real  timeElapsed 
) [inline, protected]
const Ogre::Vector3& GravityAffector::getDirection ( ) const [inline]
Ogre::Real GravityAffector::getForce ( ) const [inline]
Ogre::ParticleSystem* GravityAffector::getPartSys ( ) [inline]
const Ogre::Vector3& GravityAffector::getPosition ( ) const [inline]
void GravityAffector::setDirection ( const Ogre::Vector3 &  dir) [inline]
void GravityAffector::setForce ( Ogre::Real  force) [inline]
void GravityAffector::setForceType ( ForceType  type) [inline]
void GravityAffector::setPosition ( const Ogre::Vector3 &  pos) [inline]

Member Data Documentation

Ogre::Vector3 GravityAffector::mDirection [protected]
float GravityAffector::mForce [protected]
Ogre::Vector3 GravityAffector::mPosition [protected]

The documentation for this class was generated from the following file: