[ODE] Objects falling through terrain-trimesh...

Chris Ledwith cledwith at d-a-s.com
Thu Jul 15 20:56:50 MST 2004


> i have a trimesh-terrain on which i drop several cubes, most of them
> bounce
> around like they should.
> My problem is that some of my cubes are falling through the terrain
> instead
> of bouncing when they collide with the terrain... and some cubes are first
> bouncing but sometimes fall through when they stopped moving.
>
> I hope you understand what my problem is :)
>
> When i first tried collision detection with a terrain i used a very large
> one with about 8000 triangles and all my cubes where just falling through,
> when i reduced the triangles the cubes started to collide with my terrain.
>
> Are there limits in trianglecount for collision ?
> I found no tutorials or documentation on my problem and hope you can help
> me
> :)
>

Are you passing a suitably large number of maximum contacts to dCollide?
(the 3rd parameter). If you have a triangle mesh of high density and low
max contacts, those contacts would be quickly used up and the box would
not collide with any remaining triangles that it should, and then it could
fall through.

Try upping the max contacts value and see what happens.

-Chris





More information about the ODE mailing list