PDA

View Full Version : Particle Plane Collision



glnoob_andre
01-24-2012, 02:44 PM
Am writing a function to detect particle collision on a given plane, with the help of the normal of each point on the plane. I wanted to know how i can calculate the normal for each point on the plane.

My plane rendering code is,

/* Draw the floor. */
glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);
glColor3f(0.3, 0.3, 0.3);
glBegin(GL_QUADS);
glVertex3f(-12, -6.5, -12);
glVertex3f(12, -6.5, -12);
glVertex3f(12, -6.5, 12);
glVertex3f(-12, -6.5, 12);

Am really stuck, i would really appreciate the help.
Thank you

carsten neumann
01-24-2012, 04:06 PM
Please don't cross post to multiple sections of the forum.

I've tried to answer your post in the advanced section (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=309295#Post3092 95), because I missed the duplicate post here. It should probably only been posted in the Math and Alogrithms section.