re-quantize for before using the data in quantize method

this fixes issue 558
This commit is contained in:
Erwin Coumans
2016-02-23 08:46:09 -08:00
parent d196cec51f
commit 25409f93c7

View File

@@ -107,6 +107,8 @@ void btQuantizedBvh::setQuantizationValues(const btVector3& bvhAabbMin,const btV
v = unQuantize(vecIn);
m_bvhAabbMin.setMin(v-clampValue);
}
aabbSize = m_bvhAabbMax - m_bvhAabbMin;
m_bvhQuantization = btVector3(btScalar(65533.0),btScalar(65533.0),btScalar(65533.0)) / aabbSize;
{
quantize(vecIn,m_bvhAabbMax,true);
v = unQuantize(vecIn);