Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2465


Ignore:
Timestamp:
Dec 15, 2008, 3:16:07 PM (16 years ago)
Author:
rgrieder
Message:

Bugfix in WorldEntity: It creates a CompoundCollisionShape in its c'tor, which is also a synchronisable —> setObjectMode(0x0) to suppress synchronisation.

Location:
code/branches/presentation/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CompoundCollisionShape.h

    r2459 r2465  
    5252            void updateChildShape(CollisionShape* shape);
    5353
     54            inline void suppressSynchronisation()
     55                { this->setObjectMode(0x0); }
     56
    5457        protected:
    5558            virtual void updateParent();
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc

    r2459 r2465  
    7272        this->bPhysicsActive_ = false;
    7373        this->collisionShape_ = new CompoundCollisionShape(this);
     74        // Note: CompoundCollisionShape is a Synchronisable, but must not be synchronised.
     75        //       All objects will get attached on the client anyway, so we don't need synchronisation.
     76        this->collisionShape_->suppressSynchronisation();
    7477        this->collisionType_ = None;
    7578        this->collisionTypeSynchronised_ = None;
Note: See TracChangeset for help on using the changeset viewer.