aboutsummaryrefslogtreecommitdiff
path: root/src/shared/phys
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2020-05-18 13:41:40 -0400
committerAlexander <alex@cogarr.net>2020-05-18 13:41:40 -0400
commit355589a9100c7d08fdc4094ad32eb9852c88fcc4 (patch)
tree9e2d2ce6b736539907fc06fc3acc2c23daadafac /src/shared/phys
parent377ca5d31a35009913a795c8542659e4872d7c35 (diff)
downloadbrokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.tar.gz
brokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.tar.bz2
brokengine-355589a9100c7d08fdc4094ad32eb9852c88fcc4.zip
various updates
Diffstat (limited to 'src/shared/phys')
-rw-r--r--src/shared/phys/physcommon.cpp2
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);