public

Description

Single particle in a particle system.

Public Attributes

   
   
Geometry::Vec3f position
current position of particle
   
Geometry::Vec3f direction
direction of movement and movement per time unit
   
Geometry::Matrix3x3f rotation
rotation per time unit
   
Util::Color4ub color
Color of the particle, renderer knows if it cares.
   
float timeLeft
   
float lifeTime
   
Geometry::Vec2f size
Size of the particle. The renderer knows if it cares.

Public Functions

   
   
  Particle( Geometry::Vec3f _position, Geometry::Vec3f _direction, Geometry::Matrix3x3f _rotation, Util::Color4ub _color, float _timeLeft, float _lifeTime, Geometry::Vec2f _size)

Documentation

variable
MinSG::Particle::position

public
 
 
Geometry::Vec3f position

current position of particle

Defined in MinSG/Ext/ParticleSystem/Particle.h:42


variable
MinSG::Particle::direction

public
 
 
Geometry::Vec3f direction

direction of movement and movement per time unit

Defined in MinSG/Ext/ParticleSystem/Particle.h:43


variable
MinSG::Particle::rotation

public
 
 
Geometry::Matrix3x3f rotation

rotation per time unit

Defined in MinSG/Ext/ParticleSystem/Particle.h:44


variable
MinSG::Particle::color

public
 
 
Util::Color4ub color

Color of the particle, renderer knows if it cares.

Defined in MinSG/Ext/ParticleSystem/Particle.h:46


variable
MinSG::Particle::timeLeft

public
 
 
float timeLeft

lifeTime: total time this particle will have to live timeLeft: time (starting with last simulation step) this particle has left to live

Defined in MinSG/Ext/ParticleSystem/Particle.h:51


variable
MinSG::Particle::lifeTime

public
 
 
float lifeTime

Defined in MinSG/Ext/ParticleSystem/Particle.h:51


variable
MinSG::Particle::size

public
 
 
Geometry::Vec2f size

Size of the particle. The renderer knows if it cares.

Defined in MinSG/Ext/ParticleSystem/Particle.h:54


function
MinSG::Particle::Particle

public inline
     
     
Particle( Geometry::Vec3f _position,
  Geometry::Vec3f _direction,
  Geometry::Matrix3x3f _rotation,
  Util::Color4ub _color,
  float _timeLeft,
  float _lifeTime,
  Geometry::Vec2f _size
)    

Defined in MinSG/Ext/ParticleSystem/Particle.h:27