From b37dfcabf8ad7077d829fdf0d25fd278ed257f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Sun, 8 Jul 2012 17:17:40 +0000 Subject: [PATCH] CIS FIX --- test/Physics/EasyPhysics.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Physics/EasyPhysics.cpp b/test/Physics/EasyPhysics.cpp index 1a432fd9..53a18a3b 100644 --- a/test/Physics/EasyPhysics.cpp +++ b/test/Physics/EasyPhysics.cpp @@ -64,9 +64,15 @@ void EasyPhysics::SetShapeTo(btCollisionShape* collision_shape) //Box Shape support void EasyPhysics::SetShapeToBox(lol::vec3& box_size) { - SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE))); + vec3 new_box_size = box_size * LOL2BT_UNIT * LOL2BT_SIZE; + SetShapeTo(new btBoxShape(LOL2BT_VEC3(new_box_size))); } +//void EasyPhysics::SetShapeToSphere(lol::vec3& box_size) +//{ +// SetShapeTo(new btBoxShape(LOL2BT_VEC3(box_size * LOL2BT_UNIT * LOL2BT_SIZE))); +//} + //------------------------------------------------------------------------- //Base Location/Rotation setup //--