[ODE] Re: Heightfield / Collision.

gl gl at ntlworld.com
Tue Feb 18 06:28:01 2003


> dReal HeightSample(dReal x, dReal z);
>
> You can do this 3 times and create an approximate triangle from it. Then
you
> just do the collisions with this single triangle, which is a reasonable
> approximation i guess.

Actually that was the plan (including a GetNormal callback for optional
pre-computed normals), but I just realised that with this interface the app
could indeed be working of splines if it wanted to, and an approximate
triangle would be constructed from it internally as you suggest.

So it's actually more flexible than I thought : ).
--
gl