Sign in to follow this  
whather

ODE trimesh collisions do not work!

Recommended Posts

Hey guys, I'm having problems with trimesh collisions in ODE. When calling dCollide() between a trimesh and any other geometry object, I never get any collision points. Even the sample ODE collision apps (Test_MovingTrimesh and Test_Trimesh) do not work. In Test_MovingTrimesh, the rabbit mesh falls right through the floor and other geometry objects do not collide with it. I thought at first it might be a compile flag not set right, such as the OPCODE_DIRECTORY flag in the user-settings. However, I read somewhere that I would be getting linking errors when trying to use the trimesh objects if the OPCODE_DIRECTORY flag was commented. I am compiling the libraries (ode.lib, oded.lib, OPCODE.lib, OPCODE_D.lib) with visual studio. What's the fix? Thanks! [Edited by - whather on April 30, 2006 2:01:31 AM]

Share this post


Link to post
Share on other sites
which version of ode are you using? Try the latest CVS version, a similar problem occures with the officiel version

Share this post


Link to post
Share on other sites
Trimesh collisions can be tricky with ODE. You have to compile it with trimesh collisions enabled. There should be a flag somewhere in there for it.

Share this post


Link to post
Share on other sites
yeah, the only flag I found was the OPCODE_DIRECTORY flag (in the user-settings) which i set to OPCODE_DIRECTORY=C:\ode-0.5\OPCODE

This still didn't solve my problem though. :/

Share this post


Link to post
Share on other sites
Assuming windows, ODE comes with a series of .bat files to switch the
configuration around for you.
You need to run the one labeled : configure-single-trimesh.bat or configure-double-trimesh.bat
before selecting the VS project to compile from.

This fixed it for me when I ran into a similar problem, since I forgot to run the proper .bat.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this