Changeset 2178 for code/branches/physics/src/orxonox/objects/Scene.cc
- Timestamp:
- Nov 11, 2008, 10:30:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/Scene.cc
r2150 r2178 62 62 this->rootSceneNode_ = 0; 63 63 } 64 // create bullet world; bullet solver etc. 64 } 65 else 66 { 67 // create a dummy SceneManager of our own since we don't have Ogre::Root. 68 this->sceneManager_ = new Ogre::DefaultSceneManager(""); 69 this->rootSceneNode_ = this->sceneManager_->getRootSceneNode(); 70 } 71 72 ///////////// 73 // Physics // 74 ///////////// 75 76 // create bullet world; bullet solver etc. 65 77 66 78 // int maxProxies = 1024; … … 70 82 bt32BitAxisSweep3* broadphase = new bt32BitAxisSweep3(worldAabbMin,worldAabbMax); 71 83 72 84 this -> collisionConfiguration_ = new btDefaultCollisionConfiguration(); 73 85 this -> dispatcher_ = new btCollisionDispatcher(collisionConfiguration_); 74 86 … … 77 89 this -> dynamicsWorld_ = new btDiscreteDynamicsWorld(dispatcher_,broadphase,solver_,collisionConfiguration_); 78 90 79 // dynamicsWorld->setGravity(btVector3(0,-10,0));91 dynamicsWorld_->setGravity(btVector3(0,-10,0)); 80 92 81 }82 else83 {84 // create a dummy SceneManager of our own since we don't have Ogre::Root.85 this->sceneManager_ = new Ogre::DefaultSceneManager("");86 this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();87 }88 93 89 94 // test test test … … 108 113 if (Ogre::Root::getSingletonPtr()) 109 114 { 110 // this->sceneManager_->destroySceneNode(this->rootSceneNode_->getName()); // TODO: remove getName() for newer versions of Ogre111 115 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_); 112 116 }
Note: See TracChangeset
for help on using the changeset viewer.