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