RigsofRods
Soft-body Physics Simulation
Data Structures | Public Member Functions | Static Public Attributes | Protected Attributes
Ogre::ExtinguishableFireAffector Class Reference

This class defines a ParticleAffector which deflects particles. More...

#include <ExtinguishableFireAffector.h>

+ Inheritance diagram for Ogre::ExtinguishableFireAffector:
+ Collaboration diagram for Ogre::ExtinguishableFireAffector:

Data Structures

class  CmdIntensity
 Command object for intensity (see ParamCommand). More...
 
class  CmdIntensityGrowth
 Command object for intensity growth (see ParamCommand). More...
 
class  CmdMaxIntensity
 Command object for maximum intensity (see ParamCommand). More...
 
class  CmdMiddlePoint
 Command object for middle point (see ParamCommand). More...
 
class  CmdRadius
 Command object for radius (see ParamCommand). More...
 

Public Member Functions

 ExtinguishableFireAffector (ParticleSystem *psys)
 Default constructor. More...
 
 ~ExtinguishableFireAffector ()
 Destructor. More...
 
void _affectParticles (ParticleSystem *pSystem, Real timeElapsed)
 See ParticleAffector. More...
 
void setMiddlePoint (const Vector3 &pos)
 Sets the sphere middle point. More...
 
Vector3 getMiddlePoint (void) const
 Gets the sphere middle point. More...
 
void setIntensity (Real intensity)
 Sets the intensity. More...
 
Real getIntensity (void) const
 Gets the intensity. More...
 
void setMaxIntensity (Real intensity)
 Sets the maximum intensity. More...
 
Real getMaxIntensity (void) const
 Gets the maximum intensity. More...
 
void setIntensityGrowth (Real intensity)
 Sets the intensity growth rate. More...
 
Real getIntensityGrowth (void) const
 Gets the intensity growth rate. More...
 
void setRadius (Real radius)
 Sets the radius for the interaction with the FireExtiniguisher affector. More...
 
Real getRadius (void) const
 Gets the radius for the interaction with the FireExtiniguisher affector. More...
 
bool isTemplate () const
 
Vector3 getAbsoluteMiddlePoint (void) const
 
Real reduceIntensity (Real amount)
 
ParticleSystem * getParticleSystem ()
 
void setInstanceName (String iname)
 Sets the instance name of the parent object for this particle system. More...
 
String getInstanceName ()
 

Static Public Attributes

static CmdMiddlePoint msMiddlePointCmd
 Command objects. More...
 
static CmdIntensity msIntensityCmd
 
static CmdMaxIntensity msMaxIntensityCmd
 
static CmdIntensityGrowth msIntensityGrowthCmd
 
static CmdRadius msRadiusCmd
 

Protected Attributes

Vector3 mMiddlePoint
 sphere middle point More...
 
Real mRadius
 radius of the sphere More...
 
Real mIntensity
 Intensity of the fire. More...
 
ParticleSystem * mPsys
 
Real originalIntensity
 
bool updateIntensityRequired
 
Vector2 originalDimensions
 
bool firstFrame
 
Real mIntensityGrowth
 
Real mMaxIntensity
 
String objectInstanceName
 The instance name of the parent object. More...
 

Detailed Description

This class defines a ParticleAffector which deflects particles.

Remarks
This affector (see ParticleAffector) offers a simple (and inaccurate) physical deflection. All particles which hit the plane are reflected.
The plane is defined by a point (plane_point) and the normal (plane_normal). In addition it is possible to change the strenght of the recoil by using the bounce parameter.

Definition at line 45 of file ExtinguishableFireAffector.h.


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