From 355589a9100c7d08fdc4094ad32eb9852c88fcc4 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 18 May 2020 13:41:40 -0400 Subject: various updates --- src/shared/phys/physcommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/phys/physcommon.cpp') 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); -- cgit v1.2.3-70-g09d2