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: Plane translation and rotation math

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Posts
    1

    Plane translation and rotation math

    more like a begginner's question....

    i've seen a lot of code that show how to move on some surface (with keys, with mouse) but i still don't get it...could you pump up the math... it's getting annoyng that i can't even make a program that let's a user run thround room
    #@$@#@!$#%%^$^

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    765

    Re: Plane translation and rotation math

    You can compute three orthonormal vectors for a given plane such that one of the vectors is the plane's normal and the other two are (by definition) on the plane. One way of doing this is to pick two different points on the plane and compute a unit vector that spans the two points. This is your second vector; you then compute the third vector by the cross product of the plane's normal and the second vector.

    To move a point along the plane then you just need to move a point by linear combinations of the second and third vectors.

    cheers,
    John

Posting Permissions

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