CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

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:

csParticleSystem iMeshObject iBase List of all members.

Public Member Functions

 csNewtonianParticleSystem (iObjectRegistry *object_reg, iMeshObjectFactory *factory)
 Specify max number of particles.
virtual void Update (csTicks elapsed_time)
 Moves the particles depending on their acceleration and speed.
csVector3GetSpeed (int idx) const
 Get a particles speed. speeds are in metres/second.
void SetSpeed (int idx, const csVector3 &spd)
 Set a particles speed. speeds are in metres/second.
csVector3GetAccel (int idx) const
 Get a particles acceleration. accelerations are in metres/second.
void SetAccel (int idx, const csVector3 &acl)
 Set a particles acceleration. accelerations are in metres/second.

Protected Attributes

csVector3part_speed
 Particle speed, m/s.
csVector3part_accel
 Particle acceleration, m/s^2.

Detailed Description

This class has a set of particles that behave with phsyics.

They each have a speed and an acceleration.

Definition at line 472 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]
 

Get a particles acceleration. accelerations are in metres/second.

Definition at line 498 of file partgen.h.

csVector3& csNewtonianParticleSystem::GetSpeed int  idx  )  const [inline]
 

Get a particles speed. speeds are in metres/second.

Definition at line 492 of file partgen.h.

void csNewtonianParticleSystem::SetAccel int  idx,
const csVector3 acl
[inline]
 

Set a particles acceleration. accelerations are in metres/second.

Definition at line 500 of file partgen.h.

void csNewtonianParticleSystem::SetSpeed int  idx,
const csVector3 spd
[inline]
 

Set a particles speed. speeds are in metres/second.

Definition at line 494 of file partgen.h.

virtual void csNewtonianParticleSystem::Update csTicks  elapsed_time  )  [virtual]
 

Moves the particles depending on their acceleration and speed.

Reimplemented from csParticleSystem.


Member Data Documentation

csVector3* csNewtonianParticleSystem::part_accel [protected]
 

Particle acceleration, m/s^2.

Definition at line 478 of file partgen.h.

csVector3* csNewtonianParticleSystem::part_speed [protected]
 

Particle speed, m/s.

Definition at line 476 of file partgen.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1