Changeset 4691 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jun 24, 2005, 3:44:37 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/particles
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_emitter.cc
r4690 r4691 149 149 else 150 150 return "EMITTER_DOT"; 151 152 153 151 } 154 152 -
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()); -
orxonox/trunk/src/lib/particles/particle_system.h
r4690 r4691 114 114 virtual void draw(void) const; 115 115 116 void debug(void) ;116 void debug(void) const; 117 117 118 118 private:
Note: See TracChangeset
for help on using the changeset viewer.