#include <GravityForce.h>
Inheritance diagram for ParticleSystems::GravityForce:

Public Member Functions | |
| GravityForce (GraphicsLib::Vector *f, float a, float m) | |
| The Constructor. | |
| ~GravityForce () | |
| The Destructor. | |
| virtual void | applyForce (GraphicsLib::Vector *direction) |
| A virtual Function. | |
| virtual void | applyForce (GraphicsLib::Vector *direction, float *mass) |
| A virtual Function. | |
Public Attributes | |
| float | magnitude |
| A public Variable. | |
The GravityForce Class extends the Force Class. It affects the direction of a Particle by appling the specified direction, attenuation and magnitude.
Definition at line 27 of file GravityForce.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 GravityForce.cpp. References magnitude. |
|
|
The Destructor. Destructs the GravityForce Definition at line 13 of file GravityForce.cpp. |
|
||||||||||||
|
A virtual Function. Applies this GravityForce to the given direction Vector taking into consideration a given Mass.
Implements ParticleSystems::Force. Definition at line 32 of file GravityForce.cpp. References magnitude. |
|
|
A virtual Function. Applies this GravityForce to the given direction Vector.
Implements ParticleSystems::Force. Definition at line 17 of file GravityForce.cpp. References magnitude. |
|
|
A public Variable. The magnitude of the Gravity Definition at line 66 of file GravityForce.h. Referenced by applyForce(), and GravityForce(). |
1.4.1