Jelajahi Sumber

- Reduce the picking mode of "any" to mean OOBB & Collision in combination and not includ AABB and whilst AABB is very fast, it's also pretty specialized and would probably "get in the way" of typical picking operations in a gane.

MelvMay-GG 12 tahun lalu
induk
melakukan
d62eb41ec9
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      engine/source/2d/scene/WorldQuery.cc

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

@@ -372,8 +372,6 @@ U32 WorldQuery::anyQueryArea( const b2AABB& aabb )
     PROFILE_SCOPE(WorldQuery_AnyQueryAreaAABB);
 
     // Query.
-    aabbQueryArea( aabb );
-    mMasterQueryKey--;
     oobbQueryArea( aabb );
     mMasterQueryKey--;
     collisionQueryArea( aabb );
@@ -408,8 +406,6 @@ U32 WorldQuery::anyQueryRay( const Vector2& point1, const Vector2& point2 )
     PROFILE_SCOPE(WorldQuery_AnyQueryRay);
 
     // Query.
-    aabbQueryRay( point1, point2 );
-    mMasterQueryKey--;
     oobbQueryRay( point1, point2 );
     mMasterQueryKey--;
     collisionQueryRay( point1, point2 );
@@ -428,8 +424,6 @@ U32 WorldQuery::anyQueryPoint( const Vector2& point )
     PROFILE_SCOPE(WorldQuery_AnyQueryPoint);
 
     // Query.
-    aabbQueryPoint( point );
-    mMasterQueryKey--;
     oobbQueryPoint( point );
     mMasterQueryKey--;
     collisionQueryPoint( point );