csNewtonianParticleSystem Class Reference
[Common Plugin Classes]
This class has a set of particles that behave with phsyics.
More...
#include <csplugincommon/particlesys/partgen.h>
Inheritance diagram for csNewtonianParticleSystem:
![Inheritance graph](classcsNewtonianParticleSystem__inherit__graph.png)
Public Member Functions | |
csNewtonianParticleSystem (iObjectRegistry *object_reg, iMeshObjectFactory *factory) | |
Specify max number of particles. | |
csVector3 & | GetAccel (int idx) const |
Get a particles acceleration. accelerations are in metres/second. | |
csVector3 & | GetSpeed (int idx) const |
Get a particles speed. speeds are in metres/second. | |
void | SetAccel (int idx, const csVector3 &acl) |
Set a particles acceleration. accelerations are in metres/second. | |
void | SetSpeed (int idx, const csVector3 &spd) |
Set a particles speed. speeds are in metres/second. | |
virtual void | Update (csTicks elapsed_time) |
Moves the particles depending on their acceleration and speed. | |
Protected Attributes | |
csVector3 * | part_accel |
Particle acceleration, m/s^2. | |
csVector3 * | part_speed |
Particle speed, m/s. |
Detailed Description
This class has a set of particles that behave with phsyics.They each have a speed and an acceleration.
Definition at line 394 of file partgen.h.
Constructor & Destructor Documentation
csNewtonianParticleSystem::csNewtonianParticleSystem | ( | iObjectRegistry * | object_reg, | |
iMeshObjectFactory * | factory | |||
) |
Specify max number of particles.
Member Function Documentation
csVector3& csNewtonianParticleSystem::GetAccel | ( | int | idx | ) | const [inline] |
csVector3& csNewtonianParticleSystem::GetSpeed | ( | int | idx | ) | const [inline] |
void csNewtonianParticleSystem::SetAccel | ( | int | idx, | |
const csVector3 & | acl | |||
) | [inline] |
void csNewtonianParticleSystem::SetSpeed | ( | int | idx, | |
const csVector3 & | spd | |||
) | [inline] |
virtual void csNewtonianParticleSystem::Update | ( | csTicks | elapsed_time | ) | [virtual] |
Member Data Documentation
csVector3* csNewtonianParticleSystem::part_accel [protected] |
csVector3* csNewtonianParticleSystem::part_speed [protected] |
The documentation for this class was generated from the following file:
- csplugincommon/particlesys/partgen.h
Generated for Crystal Space by doxygen 1.4.7