From cb6fdf19a7c793c2c147ff756bd09629c017b0a0 Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 19 Jan 2015 15:33:44 +0100 Subject: [PATCH] small changes to trimesh scaling --- Levels/ObjectSetups/Level1.xml | 33 --------------------------------- physics.cc | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/Levels/ObjectSetups/Level1.xml b/Levels/ObjectSetups/Level1.xml index 2beeb34..b0876d3 100644 --- a/Levels/ObjectSetups/Level1.xml +++ b/Levels/ObjectSetups/Level1.xml @@ -13779,40 +13779,7 @@ 0.0 0.0 false -<<<<<<< HEAD 81.500000 -======= - 212.500000 - 3.0 - -222.500000 - 1 - 67 - 40 - - - - 0 - 0 - 0 - - - - - 1.0 - false - 0 - - - 0 - 0 - 0 - - - - - 1.0 - 0.0 - 0.0 - 0.0 - false - 210.500000 ->>>>>>> 12ee9a4ac5b8c3350e8afc3b6b251992020790e2 0.0 -244.500000 1 diff --git a/physics.cc b/physics.cc index 70d68e3..c93c7aa 100644 --- a/physics.cc +++ b/physics.cc @@ -212,7 +212,7 @@ void Physics::addTriangleMeshBody(Entity entity, std::string path, float mass, f } btBvhTriangleMeshShape* shape = new btBvhTriangleMeshShape(triMesh,true); - shape->setLocalScaling(btVector3(0.5f,0.5f,0.5f)); + shape->setLocalScaling(btVector3(1.5,1.5,1.5)); btDefaultMotionState* motion = new btDefaultMotionState(btTransform(btQuaternion(0,0,0,1),btVector3(entity.getPosition().x,entity.getPosition().y,entity.getPosition().z))); btVector3 inertia(0,0,0);