From 2941f755f7990d2af2ff742d75b95ecbf34a83fc Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 20 Sep 2008 23:45:45 +0000 Subject: attempt to support negative local scaling for convex hull, box,sphere, cylinder, cone and btScaledBvhTriangleMeshShape in Bullet. --- .../src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp') diff --git a/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp b/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp index f828d28e18c..fb81c8a5bde 100644 --- a/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp +++ b/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp @@ -26,7 +26,7 @@ m_collisionMargin(CONVEX_DISTANCE_MARGIN) void btConvexInternalShape::setLocalScaling(const btVector3& scaling) { - m_localScaling = scaling; + m_localScaling = scaling.absolute(); } -- cgit v1.2.3