From 3997b916c1bcccb640f6f2ce8b11cc4426feef4a Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Thu, 22 Jan 2015 09:17:51 -0800 Subject: [PATCH] remove ground collision hack for physics testing --- libraries/physics/src/PhysicsEngine.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libraries/physics/src/PhysicsEngine.cpp b/libraries/physics/src/PhysicsEngine.cpp index 7f2b139058..c374f03705 100644 --- a/libraries/physics/src/PhysicsEngine.cpp +++ b/libraries/physics/src/PhysicsEngine.cpp @@ -186,22 +186,6 @@ void PhysicsEngine::init(EntityEditPacketSender* packetSender) { // default gravity of the world is zero, so each object must specify its own gravity // TODO: set up gravity zones _dynamicsWorld->setGravity(btVector3(0.0f, 0.0f, 0.0f)); - - // GROUND HACK: add a big planar floor (and walls for testing) to catch falling objects - btTransform groundTransform; - groundTransform.setIdentity(); - for (int i = 0; i < 3; ++i) { - btVector3 normal(0.0f, 0.0f, 0.0f); - normal[i] = 1.0f; - btCollisionShape* plane = new btStaticPlaneShape(normal, 0.0f); - - btCollisionObject* groundObject = new btCollisionObject(); - groundObject->setCollisionFlags(btCollisionObject::CF_STATIC_OBJECT); - groundObject->setCollisionShape(plane); - - groundObject->setWorldTransform(groundTransform); - _dynamicsWorld->addCollisionObject(groundObject); - } } assert(packetSender);