Changeset 4385 in orxonox.OLD for orxonox/trunk/src/lib/graphics/particles
- Timestamp:
- May 29, 2005, 10:19:43 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4378 r4385 242 242 { 243 243 // applying force to the System. 244 tickPart->velocity += tickPart->extForce * tickPart->mass; 244 if (likely (tickPart->mass > 0.0)) 245 tickPart->velocity += tickPart->extForce / tickPart->mass; 245 246 246 247 // rendering new position. … … 271 272 tickPart->velocity = tickPart->velocity * this->conserve; 272 273 // find out if we have to delete tickPart 273 if ( (tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0)274 if (unlikely((tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0)) 274 275 { 275 276 // remove the particle from the list
Note: See TracChangeset
for help on using the changeset viewer.