Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4394 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields


Ignore:
Timestamp:
May 30, 2005, 2:05:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: PhysicsEngine is now aware of the existing fields and interfaces

File:
1 edited

Legend:

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

    r4338 r4394  
    1818#include "field.h"
    1919
     20#include "physics_engine.h"
     21
    2022using namespace std;
    2123
     
    3032   this->setMagnitude(1);
    3133   this->setAttenuation(0);
     34   
     35   PhysicsEngine::getInstance()->addField(this);
    3236}
    3337
     
    3943Field::~Field ()
    4044{
    41   // delete what has to be deleted here
     45   PhysicsEngine::getInstance()->removeField(this);
    4246}
    4347
Note: See TracChangeset for help on using the changeset viewer.