Changeset 4691 in orxonox.OLD for orxonox/trunk/src/lib/particles/particle_system.cc
- Timestamp:
- Jun 24, 2005, 3:44:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4690 r4691 271 271 if (likely (tickPart->mass > 0.0)) 272 272 tickPart->velocity += tickPart->extForce / tickPart->mass * dt; 273 274 273 // rendering new position. 275 274 tickPart->position += tickPart->velocity * dt; … … 293 292 294 293 if (this->conserve < 1.0) 295 tickPart->velocity = tickPart->velocity * this->conserve; 294 { 295 tickPart->velocity *= this->conserve; 296 tickPart->momentum *= this->conserve; 297 } 296 298 // find out if we have to delete tickPart 297 299 if (unlikely((tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0)) … … 550 552 \brief outputs some nice debug information 551 553 */ 552 void ParticleSystem::debug(void) 554 void ParticleSystem::debug(void) const 553 555 { 554 556 PRINT(0)(" ParticleSystem %s\n", this->getName());
Note: See TracChangeset
for help on using the changeset viewer.