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:
@@ -63,7 +63,7 @@ void btSphereTriangleCollisionAlgorithm::processCollision (btCollisionObject* co
|
|||||||
input.m_transformA = sphereObj->getWorldTransform();
|
input.m_transformA = sphereObj->getWorldTransform();
|
||||||
input.m_transformB = triObj->getWorldTransform();
|
input.m_transformB = triObj->getWorldTransform();
|
||||||
|
|
||||||
bool swapResults = m_swapped && !m_ownManifold;
|
bool swapResults = m_swapped;
|
||||||
|
|
||||||
detector.getClosestPoints(input,*resultOut,dispatchInfo.m_debugDraw,swapResults);
|
detector.getClosestPoints(input,*resultOut,dispatchInfo.m_debugDraw,swapResults);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user