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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user