[ODE] Incorrect depth on trimesh collisions
Joost van Dongen
tsgoo at hotmail.com
Sat Aug 4 10:54:28 MST 2007
I am working on a game with some physicsed trimesh objects, but they bounce through the level at extreme speeds. After a lot of research into what was happening, I found out that this happened because the depth that was reported by the collision detection is way too large, resulting in values like 6.1 when the real value was more like 0.05. I checked this by drawing the collisions in my game and they are indeed way too deep. I am using ODE 0.5 (the one destributed with the OGRE-engine) and am using the functions
dGeomTriMeshDataBuildSingle1() and dCreateTriMesh() to create the collision detection objects. The collision positions seem to be totally okay, only the depths are broken. I think the problem only exists with trimesh-to-trimesh collisions and not with trimesh-to-sphere collisions.
So my question is: what might be causing this? I have no clue whatsoever what I might be doing wrong, especially as the collision positions are not broken.
Thanks in advance!
Joost "Oogst" van Dongen
Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ODE