Browse Source

- Fixed a minor problem with WorldQuery when picking AABB on objects OOBB.

MelvMay-GG 12 years ago
parent
commit
762ce2b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      engine/source/2d/scene/WorldQuery.cc

+ 2 - 0
engine/source/2d/scene/WorldQuery.cc

@@ -355,7 +355,9 @@ U32 WorldQuery::oobbQueryAABB( const b2AABB& aabb )
     mComparePolygonShape.Set( verts, 4 );
     mCompareTransform.SetIdentity();
     mCheckOOBB = true;
+    mCheckAABB = true;
     Query( this, aabb );
+    mCheckAABB = false;
     mCheckOOBB = false;
 
     // Inject always-in-scope.