diff options
Diffstat (limited to 'src/shared/phys')
| -rw-r--r-- | src/shared/phys/physcommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/phys/physcommon.cpp b/src/shared/phys/physcommon.cpp index 45374d2..e418ef6 100644 --- a/src/shared/phys/physcommon.cpp +++ b/src/shared/phys/physcommon.cpp @@ -53,7 +53,6 @@ btSequentialImpulseConstraintSolver* Solver; void phys_genesis(){ broadphase = new btAxisSweep3(btVector3(-100000,-100000,-100000),btVector3(100000,100000,100000)); - broadphase ->getOverlappingPairCache()->setInternalGhostPairCallback(new btGhostPairCallback()); //printf("Broadphase\n"); CollisionConfiguration = new btDefaultCollisionConfiguration(); //printf("Collision config\n"); @@ -62,6 +61,7 @@ void phys_genesis(){ Solver = new btSequentialImpulseConstraintSolver(); //printf("Solver\n"); World = new btDiscreteDynamicsWorld(Dispatcher, broadphase, Solver, CollisionConfiguration); + broadphase ->getOverlappingPairCache()->setInternalGhostPairCallback(new btGhostPairCallback()); //printf("Physics world init ok.\n"); World->setGravity(btVector3(0,-10,0)); //printf("Created physics world: %p\n",World); |
