Applied patch from Alex Silverman, to swap the partId/triangleId correctly.

http://code.google.com/p/bullet/issues/detail?id=54
Thanks for the patch!
This commit is contained in:
erwin.coumans
2008-06-26 23:52:39 +00:00
parent 50d41b624b
commit dbc464f831

View File

@@ -651,6 +651,9 @@ void btGImpactCollisionAlgorithm::gimpact_vs_shape(btCollisionObject * body0,
while(i--)
{
int child_index = collided_results[i];
if(swapped)
m_triface1 = child_index;
else
m_triface0 = child_index;
btCollisionShape * colshape0 = retriever0.getChildShape(child_index);