Changeset 2292 for code/branches/physics/src/orxonox/objects/Scene.h
- Timestamp:
- Nov 28, 2008, 1:25:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/Scene.h
r2192 r2292 35 35 #include "core/BaseObject.h" 36 36 #include "util/Math.h" 37 #include "objects/Tickable.h" 37 38 38 #include " ogrebullet/Dynamics/OgreBulletDynamics.h"39 #include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h" 39 40 40 41 namespace orxonox 41 42 { 42 class _OrxonoxExport Scene : public BaseObject, public network::Synchronisable 43 class _OrxonoxExport Scene : public BaseObject, public network::Synchronisable, public Tickable 43 44 { 44 45 public: … … 55 56 56 57 inline btDiscreteDynamicsWorld* getPhysicalWorld() const 57 { return this-> dynamicsWorld_; }58 { return this->physicalWorld_; } 58 59 59 60 void setSkybox(const std::string& skybox); … … 69 70 { return this->bShadows_; } 70 71 72 inline const Vector3& getWorldAabbMax() 73 { 74 this->physicalWorld_->getBroadphase(); 75 } 76 77 inline bool hasPhysics() 78 { return this->physicalWorld_ != 0; } 79 void setPhysicalWorld(bool wantsPhysics, const Vector3& worldAabbMin, const Vector3& worldAabbMax); 80 81 void tick(float dt); 82 71 83 private: 72 84 void addObject(BaseObject* object); … … 81 93 Ogre::SceneNode* rootSceneNode_; 82 94 83 btDiscreteDynamicsWorld* dynamicsWorld_; 84 btSequentialImpulseConstraintSolver* solver_; 85 btDefaultCollisionConfiguration* collisionConfiguration_; 86 btCollisionDispatcher* dispatcher_; 87 // Point auf Bullet btDynamics world && solver 95 btDiscreteDynamicsWorld* physicalWorld_; 88 96 89 97 std::string skybox_;
Note: See TracChangeset
for help on using the changeset viewer.