wrong condition: swap the contact normal/results independent from contact manifold owner.

Thanks to ihar3d, http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2588
This commit is contained in:
erwin.coumans
2008-09-09 22:40:30 +00:00
parent bb50a2038f
commit aad1d574ef

View File

@@ -63,7 +63,7 @@ void btSphereTriangleCollisionAlgorithm::processCollision (btCollisionObject* co
input.m_transformA = sphereObj->getWorldTransform();
input.m_transformB = triObj->getWorldTransform();
bool swapResults = m_swapped && !m_ownManifold;
bool swapResults = m_swapped;
detector.getClosestPoints(input,*resultOut,dispatchInfo.m_debugDraw,swapResults);