#include <RandomForce.h>
Inheritance diagram for ParticleSystems::RandomForce:
Public Member Functions | |
RandomForce (GraphicsLib::Vector *f, float a) | |
The Constructor. | |
~RandomForce () | |
The Destructor. | |
virtual void | applyForce (GraphicsLib::Vector *direction) |
A virtual Function. | |
virtual void | applyForce (GraphicsLib::Vector *direction, float *mass) |
A virtual Function. |
The RandomForce Class extends the Force Class. It affects the direction of a Particle randomly
Definition at line 26 of file RandomForce.h.
|
The Constructor. The RandomForce 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 9 of file RandomForce.cpp. |
|
The Destructor. Destructs the Force Definition at line 12 of file RandomForce.cpp. |
|
A virtual Function. Applies this RandomForce to the given direction Vector taking into consideration a given Mass.
Implements ParticleSystems::Force. Definition at line 31 of file RandomForce.cpp. |
|
A virtual Function. Applies this RandomForce to the given direction Vector.
Implements ParticleSystems::Force. Definition at line 16 of file RandomForce.cpp. |