Changeset 4186 in orxonox.OLD for orxonox/branches/physics/src/lib/graphics/particles
- Timestamp:
- May 14, 2005, 10:57:14 PM (20 years ago)
- Location:
- orxonox/branches/physics/src/lib/graphics/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4182 r4186 249 249 \brief applies some force to a Particle. 250 250 */ 251 void ParticleSystem::applyField( Field* field)251 void ParticleSystem::applyField(float dt, Field* field) 252 252 { 253 253 Particle* tickPart = particles; 254 254 while (tickPart) 255 255 { 256 tickPart->extForce += field->calcForce( tickPart->position);256 tickPart->extForce += field->calcForce(dt, tickPart->position); 257 257 tickPart = tickPart->next; 258 258 } -
orxonox/branches/physics/src/lib/graphics/particles/particle_system.h
r4182 r4186 70 70 void setMass(float mass, float randomMass); 71 71 72 void applyField( Field* field);72 void applyField(float dt, Field* field); 73 73 74 74 void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.