Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 7:08:36 PM (15 years ago)
Author:
rgrieder
Message:
  • orxonox::Scene should work properly with XMLPort and network synchronisation, no matter what input. No guarantee of course ;)
  • If you disable physics completely and then reactivate it, all rigid bodies that were removed will be added again.
  • new XML attributes: gravity, negativeWorldRange and positiveWorldRange
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics_merge/src/orxonox/objects/worldentities/WorldEntity.cc

    r2442 r2446  
    312312        if (this->isActive() && this->hasPhysics() && !this->isPhysicsActive() && !this->parent_)
    313313        {
    314             this->getScene()->addRigidBody(this->physicalBody_);
     314            this->getScene()->addPhysicalObject(this);
    315315            this->bPhysicsActive_ = true;
    316316        }
     
    321321        if (this->isPhysicsActive())
    322322        {
    323             this->getScene()->removeRigidBody(this->physicalBody_);
     323            this->getScene()->removePhysicalObject(this);
    324324            this->bPhysicsActive_ = false;
    325325        }
Note: See TracChangeset for help on using the changeset viewer.