Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2005, 2:10:47 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: inheritSpeed now property of particle_emitter. system not friend emitter anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_system.cc

    r4478 r4493  
    4242  this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
    4343  this->material = NULL;
    44   this->name = NULL;
    4544  this->maxCount = maxCount;
    4645  this->count = 0;
     
    4948  this->setConserve(1);
    5049  this->setLifeSpan(1);
    51   this->setInheritSpeed(0);
    5250  this->glID = NULL;
    5351  this->setType(type, 1);
     
    123121{
    124122  this->material = material;
    125 }
    126 
    127 /**
    128    \brief how much of the speed from the ParticleEmitter should flow onto the ParticleSystem
    129    \param value a Value between zero and one
    130 
    131    if you want to change the value of this variable during emission time (to make it more dynamic)
    132    you may want to use the animation class
    133 */
    134 void ParticleSystem::setInheritSpeed(float value)
    135 {
    136   if (unlikely(value > 1.0))
    137     this->inheritSpeed = 1;
    138   else if (unlikely(value < 0.0))
    139     this->inheritSpeed = 0;
    140   else
    141     this->inheritSpeed = value;
    142123}
    143124
     
    453434void ParticleSystem::debug(void)
    454435{
    455   PRINT(0)("  ParticleSystem %s\n", this->name);
     436  PRINT(0)("  ParticleSystem %s\n", this->getName());
    456437  PRINT(0)("  ParticleCount: %d, maximumCount: %d :: filled %d%%\n", this->count, this->maxCount, 100*this->count/this->maxCount);
    457438  if (deadList)
Note: See TracChangeset for help on using the changeset viewer.