Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2008, 12:54:29 PM (16 years ago)
Author:
martisty
Message:

Physics implementation in scene.cc

File:
1 edited

Legend:

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

    r2087 r2150  
    6262                this->rootSceneNode_ = 0;
    6363            }
     64        // create bullet world; bullet solver etc.
     65
     66        // int maxProxies = 1024;
     67
     68        btVector3 worldAabbMin(-10000,-10000,-10000);
     69        btVector3 worldAabbMax(10000,10000,10000);
     70        bt32BitAxisSweep3* broadphase = new bt32BitAxisSweep3(worldAabbMin,worldAabbMax);
     71
     72        this -> collisionConfiguration_ = new btDefaultCollisionConfiguration();
     73        this -> dispatcher_ = new btCollisionDispatcher(collisionConfiguration_);
     74
     75        this -> solver_ = new btSequentialImpulseConstraintSolver;
     76
     77        this -> dynamicsWorld_ =  new btDiscreteDynamicsWorld(dispatcher_,broadphase,solver_,collisionConfiguration_);
     78
     79      //  dynamicsWorld->setGravity(btVector3(0,-10,0));
     80
    6481        }
    6582        else
Note: See TracChangeset for help on using the changeset viewer.