Hi guys!
I’m wondering in how to do a hit test with a Quad and a point.
Do you have any hints?
Hi guys!
I’m wondering in how to do a hit test with a Quad and a point.
Do you have any hints?
Nehe’s Lesson 32 deals with picking tests with quad objects and is a little game as well… Might be worth a visit there if you haven’t already… nehe.gamedev.net
The other option from what I’ve seen is to calculate the distance between the point and the quad with some sort of mathematical formula… which may have been covered in Nehe’s lesson but I can’t recall…
If there’s anything else then I don’t know I’m afraid…
Tina
I’m sorry Tina, I used the wrong word for my explanation…
What I want, is a formula for collision between a point and a Quad (a surface).
Do you have any hints?
Thank you
This site seems to have what you want…
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm#Collision
Tina