[ODE] sphere-mesh and box-mesh crash

Patrick Enoch Hendrix_ at gmx.net
Sat Jun 25 13:18:50 MST 2005


Hello all,

I just discovered that the collider for sphere-mesh and box-mesh does  
not check the contact status.
in mesh-mesh this is done. you need to insert the following 4 lines  
before getting the actual results:

------------- snip ---------

+  if (!Collider.GetContactStatus())
+  {
+     return 0;
+  }

     // get results
     int TriCount = Collider.GetNbTouchedPrimitives();
     const int* Triangles = (const int*)Collider.GetTouchedPrimitives();

------------- snip ---------


Patrick




More information about the ODE mailing list