Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Particle Plane Collision

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2012
    Posts
    26

    Particle Plane Collision

    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

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2010
    Posts
    491

    Re: Particle Plane Collision

    Please don't cross post to multiple sections of the forum.

    I've tried to answer your post in the advanced section, because I missed the duplicate post here. It should probably only been posted in the Math and Alogrithms section.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •