Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2005, 1:24:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ParticleSystem is now a PhysicsInterface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/physics/physics_connection.cc

    r4375 r4377  
    2828
    2929
    30 PhysicsConnection::PhysicsConnection(ParticleSystem* particleSystem, Field* field)
     30PhysicsConnection::PhysicsConnection(PhysicsInterface* subject, Field* field)
    3131{
    32   this->type = PCON_ParticlesField;
    33   this->particleSystem = particleSystem;
     32  this->type = PCON_PhysIField;
     33  this->subject = subject;
    3434  this->field = field;
    3535
     
    5959      break;
    6060
    61     case PCON_ParticlesField:
    62       this->particleSystem->applyField(dt, this->field);
    63 
    64       break;
    65      
    6661    case PCON_PhysIPhysI:
    67 
     62      this->subject->applyField(this->field, dt);
    6863      break;
    6964    }
Note: See TracChangeset for help on using the changeset viewer.