#include <Force.h>
Inheritance diagram for ParticleSystems::Force:
Public Member Functions | |
Force (GraphicsLib::Vector *f, float a) | |
The Constructor. | |
virtual | ~Force () |
The Destructor. | |
virtual void | applyForce (GraphicsLib::Vector *direction)=0 |
An abstract Function. | |
virtual void | applyForce (GraphicsLib::Vector *direction, float *mass)=0 |
An abstract Function. | |
Public Attributes | |
GraphicsLib::Vector * | force |
A public Variable. | |
float | attenuation |
A public Variable. |
The Force Class is the Superclass for all Forces. Forces influence the movement of the Particles in a per Force specific way.
Definition at line 22 of file Force.h.
|
The Constructor. The Force Constructor takes a Vector that defines the direction on how to influence the Particle accoriding to a given attenuation. If the attenuation is set to 1 the Force will be fully applied
Definition at line 11 of file Force.cpp. References attenuation, and force. |
|
The Destructor. Destructs the Force Definition at line 16 of file Force.cpp. References force. |
|
An abstract Function. Applies this Force to the given direction Vector taking into consideration a given Mass.
Implemented in ParticleSystems::GravityForce, ParticleSystems::RandomForce, and ParticleSystems::UniformForce. |
|
An abstract Function. Applies this Force to the given direction Vector.
Implemented in ParticleSystems::GravityForce, ParticleSystems::RandomForce, and ParticleSystems::UniformForce. |
|
A public Variable. The attenuation of the Force Definition at line 66 of file Force.h. Referenced by Force(). |
|
A public Variable. The direction of this Force |