[ODE] trimesh fall through
Keith Wiley
kwiley at cs.unm.edu
Sun Nov 20 11:58:12 MST 2005
I'm having a similar problem. I fixed it manually. Is your trimesh
an extruded nonfolding terrain or is it a more complicated shape? In
either case, you can perform manual collision detection. If the
trimesh is a simple extruded terrain, than check that no object ever
falls through the terrain by having a GetTerrainHeight function. If
an object falls through, manually lift it up to ground height. One
problem with this approach is that you won't get physically
interesting collisions (not bouncing, not partial penetration or
softness), but at least things won't fall through the terrain.
If the trimesh is not a nonfolding extruded terrain, then things are
more complicated, but it's just basic collision detection. One way
is to check every edge of one object against every triangle of
another object and see if any edge penetrates any triangle,
signifying a collision.
On Nov 20, 2005, at 5:29 AM, Andrea Leofreddi wrote:
> Hello,
> I'm have some troubles with sphere-trimesh collision. When sphere's
> speed gets enough high it falls through the trimesh. I'm wondering if
> what I'm experiencing is tunneling: when the sphere runs through the
> trimesh, I still get some collisions (I do never get the sphere run
> through without collisions), but It seems they're not "strong"
> enough to
> push the sphere out.
>
> Any hint?
>
> Thanks,
> Andrea
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
________________________________________________________________________
Keith Wiley kwiley at cs.unm.edu http://www.unm.edu/~keithw
"And what if we picked the wrong religion? Every week, we're just
making God madder and madder!"
-- Homer Simpson
________________________________________________________________________
More information about the ODE
mailing list