PDA

View Full Version : Quad Hit Test Information



Fernando
09-18-2002, 06:15 PM
Hi guys!

I'm wondering in how to do a hit test with a Quad and a point.

Do you have any hints?

tinak
09-18-2002, 06:36 PM
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

Fernando
09-18-2002, 06:42 PM
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

tinak
09-18-2002, 06:56 PM
This site seems to have what you want...
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm#Collision

Tina