Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2008, 1:44:09 PM (17 years ago)
Author:
rgrieder
Message:

Reverted all changes of attempt to update physics branch.

Location:
code/branches/physics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics

  • code/branches/physics/src/orxonox/objects/Scene.cc

    r2087 r2192  
    7070        }
    7171
     72        /////////////
     73        // Physics //
     74        /////////////
     75
     76        // create bullet world; bullet solver etc.
     77
     78        // int maxProxies = 1024;
     79
     80        btVector3 worldAabbMin(-10000,-10000,-10000);
     81        btVector3 worldAabbMax(10000,10000,10000);
     82        bt32BitAxisSweep3* broadphase = new bt32BitAxisSweep3(worldAabbMin,worldAabbMax);
     83
     84        this -> collisionConfiguration_ = new btDefaultCollisionConfiguration();
     85        this -> dispatcher_ = new btCollisionDispatcher(collisionConfiguration_);
     86
     87        this -> solver_ = new btSequentialImpulseConstraintSolver;
     88
     89        this -> dynamicsWorld_ =  new btDiscreteDynamicsWorld(dispatcher_,broadphase,solver_,collisionConfiguration_);
     90
     91        dynamicsWorld_->setGravity(btVector3(0,-10,0));
     92
     93
    7294        // test test test
    7395        if (Core::showsGraphics() && this->sceneManager_)
     
    91113            if (Ogre::Root::getSingletonPtr())
    92114            {
    93 //                this->sceneManager_->destroySceneNode(this->rootSceneNode_->getName()); // TODO: remove getName() for newer versions of Ogre
    94115                Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_);
    95116            }
Note: See TracChangeset for help on using the changeset viewer.