[ODE] Should trimeshes react to physics?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Mon Dec 12 11:18:01 MST 2005


> the terrain.  For the most part it works really well, but  
> occasionally one of the blocks suddenly explodes upward with great  

You need two things:

1) Use the auto-disable, and make sure your blocks-at-rest actually go 
to disable. Most engines have pretty aggressive defaults for these 
values to improve stability; ODE has pretty conservative defaults so you 
may have to change them.

2) Use a fixed time step, if you aren't already. 
http://www.mindcontrol.org/~hplus/graphics/game_loop.html

You possibly need a third thing:

3) Make sure you allow at least 12 contacts between trimeshes and geoms, 
if your geoms happen to be sitting in a crossing of 6 different 
triangles (such as at a vertex in a typical heightfield).

Cheers,

			/ h+



More information about the ODE mailing list