Sign in to follow this  
dmitriyd

polygon / point collision needed !!!!!!!!!!!!!

Recommended Posts

Hi, I am trying to solve polygon collision test, but I a have a problem to make it. I found normals but I confuse with plane distance formula. Can anyone help me???? There are the code of my vertex data: for(i=0; i<a->wld->num_faces; i++) { t[0]=a->wld->vertex[i]; t[1]=a->wld->vertex[i+1]; t[2]=a->wld->vertex[i+2]; calculate_normal(t[0],t[1],t[2],&normal.x,&normal.y,&normal.z); ...... ...... how do I do polygon/point intersection test ????? }

Share this post


Link to post
Share on other sites
I'm not sure I understand your question. Do you want to know if a 3D point is inside a polygon? If so, that is not very practical since most likely the point will be above or below your polygon, not exactly on the plane.

If you are doing a collision test, you want to test for the intersection between a line/ray and a polygon. Google this and you'll find many examples

Share this post


Link to post
Share on other sites
Oh now I realise. You really hope to get answers by ignoring us, but instead posting the same thread over and over again, and each time you approximately double triple the number of exclamation marks:



Bad try. You might want to read the following first:

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this