bugfix in aabb expansion, causing the convexSweepTest to fail in certain cases
(when the AABB is not symmetric around the origin) Thanks to fishboy82 for the report and fix: See http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=4484 http://code.google.com/p/bullet/issues/detail?id=322
This commit is contained in:
@@ -961,8 +961,8 @@ inline void btDbvt::rayTestInternal( const btDbvtNode* root,
|
||||
do
|
||||
{
|
||||
const btDbvtNode* node=stack[--depth];
|
||||
bounds[0] = node->volume.Mins()+aabbMin;
|
||||
bounds[1] = node->volume.Maxs()+aabbMax;
|
||||
bounds[0] = node->volume.Mins()-aabbMax;
|
||||
bounds[1] = node->volume.Maxs()-aabbMin;
|
||||
btScalar tmin=1.f,lambda_min=0.f;
|
||||
unsigned int result1=false;
|
||||
result1 = btRayAabb2(rayFrom,rayDirectionInverse,signs,bounds,tmin,lambda_min,lambda_max);
|
||||
|
||||
Reference in New Issue
Block a user