Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2005, 10:57:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: forces now time dependant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc

    r4182 r4186  
    249249    \brief applies some force to a Particle.
    250250 */
    251 void ParticleSystem::applyField(Field* field)
     251void ParticleSystem::applyField(float dt, Field* field)
    252252{
    253253  Particle* tickPart = particles;
    254254  while (tickPart)
    255255    {
    256       tickPart->extForce += field->calcForce(tickPart->position);
     256      tickPart->extForce += field->calcForce(dt, tickPart->position);
    257257      tickPart = tickPart->next;
    258258    }
Note: See TracChangeset for help on using the changeset viewer.