fixed collision bug involving meshes/compounds: always keep point with deepest penetration

increased default number of objects/overlaps in broadphase to 20k/60k
This commit is contained in:
ejcoumans
2006-09-04 18:54:36 +00:00
parent b76e642506
commit 1048793061
3 changed files with 27 additions and 11 deletions

View File

@@ -98,7 +98,9 @@ void OverlappingPairCache::AddOverlappingPair(BroadphaseProxy* proxy0,Broadphase
}
///this FindPair becomes really slow. Either sort the list to speedup the query, or
///use a different solution. It is mainly used for Removing overlapping pairs. Removal could be delayed.
///we could keep a linked list in each proxy, and store pair in one of the proxies (with lowest memory address)
BroadphasePair* OverlappingPairCache::FindPair(BroadphaseProxy* proxy0,BroadphaseProxy* proxy1)
{
BroadphasePair* foundPair = 0;