Changeset 3934 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
- Timestamp:
- Apr 23, 2005, 2:27:17 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
r3933 r3934 112 112 { 113 113 // saving the time 114 float countF = (dt+this->saveTime) * this->emissionRate; 115 int count = (int)round(countF); 116 this->saveTime = countF - (float)count; 117 118 printf( "%d::%f::emmit %f\n", count, countF, emissionRate); 114 float count = (dt+this->saveTime) * this->emissionRate; 115 this->saveTime = modff(count, &count); 116 this->saveTime /= this->emissionRate; 119 117 120 118 for (int i = 0; i <= count; i++)
Note: See TracChangeset
for help on using the changeset viewer.