Changeset 4493 in orxonox.OLD for orxonox/trunk/src/lib/particles/particle_system.cc
- Timestamp:
- Jun 3, 2005, 2:10:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4478 r4493 42 42 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); 43 43 this->material = NULL; 44 this->name = NULL;45 44 this->maxCount = maxCount; 46 45 this->count = 0; … … 49 48 this->setConserve(1); 50 49 this->setLifeSpan(1); 51 this->setInheritSpeed(0);52 50 this->glID = NULL; 53 51 this->setType(type, 1); … … 123 121 { 124 122 this->material = material; 125 }126 127 /**128 \brief how much of the speed from the ParticleEmitter should flow onto the ParticleSystem129 \param value a Value between zero and one130 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 class133 */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 else141 this->inheritSpeed = value;142 123 } 143 124 … … 453 434 void ParticleSystem::debug(void) 454 435 { 455 PRINT(0)(" ParticleSystem %s\n", this-> name);436 PRINT(0)(" ParticleSystem %s\n", this->getName()); 456 437 PRINT(0)(" ParticleCount: %d, maximumCount: %d :: filled %d%%\n", this->count, this->maxCount, 100*this->count/this->maxCount); 457 438 if (deadList)
Note: See TracChangeset
for help on using the changeset viewer.