Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2005, 1:30:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: physicsInterfaces now check in at constuctiontime with the PhysicsEngine

File:
1 edited

Legend:

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

    r4377 r4392  
    2121
    2222#include "physics_interface.h"
     23#include "physics_engine.h"
    2324
    2425#include "field.h"
     
    4142   this->massChildren = 0;
    4243   this->forceSum = Vector(0, 0, 0);
     44
     45   PhysicsEngine::getInstance()->addPhysicsInterface(this);
    4346}
    4447
     
    5053PhysicsInterface::~PhysicsInterface ()
    5154{
    52   // delete what has to be deleted here
     55   PhysicsEngine::getInstance()->removePhysicsInterface(this);
    5356}
    5457
Note: See TracChangeset for help on using the changeset viewer.