Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 1:38:17 PM (16 years ago)
Author:
rgrieder
Message:

Trying to synchronise phyiscs over the network.

  • Removed derivation of CollisionShape from WorldEntity (BaseObject instead).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/Scene.h

    r2313 r2374  
    7070            inline bool hasPhysics()
    7171                { return this->physicalWorld_ != 0; }
    72             void setPhysicalWorld(bool wantsPhysics, const Vector3& worldAabbMin, const Vector3& worldAabbMax);
     72            void setPhysicalWorld(bool wantsPhysics);//, const Vector3& worldAabbMin, const Vector3& worldAabbMax);
    7373
    7474            void addRigidBody(btRigidBody* body);
     
    8585            void networkcallback_applyAmbientLight()
    8686                { this->setAmbientLight(this->ambientLight_); }
     87            void networkcallback_hasPhysics()
     88                { this->setPhysicalWorld(this->bHasPhysics_); }
    8789
    88             Ogre::SceneManager*    sceneManager_;
    89             Ogre::SceneNode*       rootSceneNode_;
     90            Ogre::SceneManager*      sceneManager_;
     91            Ogre::SceneNode*         rootSceneNode_;
    9092
    9193            btDiscreteDynamicsWorld* physicalWorld_;
    9294            std::set<btRigidBody*>   physicsQueue_;
     95            bool                     bHasPhysics_;
    9396
    94             std::string            skybox_;
    95             ColourValue            ambientLight_;
    96             std::list<BaseObject*> objects_;
    97             bool                   bShadows_;
     97            std::string              skybox_;
     98            ColourValue              ambientLight_;
     99            std::list<BaseObject*>   objects_;
     100            bool                     bShadows_;
    98101    };
    99102}
Note: See TracChangeset for help on using the changeset viewer.