Advertisement

Terrain collision detection

Started by January 23, 2003 01:40 AM
0 comments, last by Structural 22 years, 1 month ago
I''ve been looking into terrain collision detection but I have a few questions regarding the maths. I have been given the tip of checking the height of the heightmap against the collision point. If this point is below the height of the map at that position, then we have collision. Logical... The problem is this is very coarse. Especially if you have a smooth rendered map this will give problems, as I want a relative smooth detection (car on terrain simulation). I have been given the tip of interpolating the points that surround the collision point, but that''s where I''m lost. I cannot find the term "interpolation" so quick in my maths book. Although I have a vague idea of what interpolation is (averaging the heights), I would like to have an explanation, perhaps accompanied with a formula. Also would I like to know if this method is acceptable for detection that I was describing (car on terrain) and if there are things that I should look out for. Thank you!
STOP THE PLANET!! I WANT TO GET OFF!!
I''m not completely sure but I think interpolation is getting the inbetweens between points, a bit like tweening but for 3D.
There is linear interpolation and cubic interpolation, and a number of others I think.

This topic is closed to new replies.

Advertisement