Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2005, 11:23:48 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: some more definitions of the particleSystem/Emitter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc

    r3929 r3930  
    2929   this->setClassName ("ParticleEmitter");
    3030   this->direction = direction;
    31    this->angle = angle;
     31   this->setSpread(angle);
    3232   this->emissionRate = emissionRate;
    3333   this->velocity = velocity;
    34    this->timeToLive = ttl;
    3534}
    3635
     
    6463   \brief set the angle of the emitter
    6564   \param angle around the direction in which there are particles to be emitted
     65   \param random A random spread-angle, the +- randomness of this option
    6666
    6767   if you want to change the value of this variable during emission time (to make it more dynamic)
    68    you will have to use the animation class
     68   you may want to use the animation class
    6969*/
    70 void ParticleEmitter::setAngle(float angle)
     70void ParticleEmitter::setSpread(float angle, float random)
    7171{}
    7272
     
    7575   \brief set the emission rate
    7676   \param sets the number of particles emitted per second
     77   \param random A random emissionRate, the +- randomness of this option
    7778
    7879   if you want to change the value of this variable during emission time (to make it more dynamic)
    79    you will have to use the animation class
     80   you may want to use the animation class
    8081*/
    81 void ParticleEmitter::setEmissionRate(float emissionRate)
     82void ParticleEmitter::setEmissionRate(float emissionRate, float random)
    8283{}
    8384
     
    8586/**
    8687   \brief sets the velocity of all particles emitted
    87    \param velocity of the emitted particles
     88   \param velocity The starting velocity of the emitted particles
     89   \param random A random starting velocity, the +- randomness of this option
    8890
    8991   if you want to change the value of this variable during emission time (to make it more dynamic)
    90    you will have to use the animation class
     92   you may want to use the animation class
    9193*/
    92 void ParticleEmitter::setVelocity(float velocity)
     94void ParticleEmitter::setVelocity(float velocity, float random)
    9395{}
    9496
     
    98100
    99101   if you want to change the value of this variable during emission time (to make it more dynamic)
    100    you will have to use the animation class
     102   you may want to use the animation class
    101103*/
    102 void ParticleEmitter::setTTL(float ttl)
    103 {}
    104 
    105104
    106105/**
Note: See TracChangeset for help on using the changeset viewer.