[ODE] Re: Heightfield / Collision.

Stephan Heigl steve at eisscholle.de
Tue Feb 18 11:47:01 2003


Am Dienstag, 18. Februar 2003 18:32 schrieb Clint Brewer:
> or optionally, I was thinking you could have a function that asks the
> terrain for a set of triangles underneath a sample point.   Then the
> terrain can return a small set of triangles and you can collide the
> geometry against those triangles?  This would let the terrain give you
> the real triangles, which you might not get with your query for height
> samples,  and it would keep the format of the terrain completely up to
> the terrain.

This is what i (try) to do with terrain - box collision. I "project" the AABB 
of the colliding box onto the terrain, extract all the triangles from the 
"projected" area. Since my vertexspacing isn't that small i always get 1-8 
triangles and i think that's acceptable (well, actually it doesn't work 
yet...)

-- 
Stephan Heigl
http://www.eisscholle.de
JabberIM: stephanh@amessage.de
ICQ: 12707332