From ff38230704e838fb2e510adbe5ea01f7a6bebae4 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Thu, 11 Oct 2012 16:36:16 +0000 Subject: [PATCH] use the right m_bvhAabbMax/m_bvhAabbMin to adjust quantization --- src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp b/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp index 7ab5e9dc7..889216df5 100644 --- a/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp +++ b/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp @@ -103,12 +103,12 @@ void btQuantizedBvh::setQuantizationValues(const btVector3& bvhAabbMin,const btV unsigned short vecIn[3]; btVector3 v; { - quantize(vecIn,bvhAabbMin,false); + quantize(vecIn,m_bvhAabbMin,false); v = unQuantize(vecIn); m_bvhAabbMin.setMin(v-clampValue); } { - quantize(vecIn,bvhAabbMax,true); + quantize(vecIn,m_bvhAabbMax,true); v = unQuantize(vecIn); m_bvhAabbMax.setMax(v+clampValue); }