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 3 of 3

Thread: Rotating a rectangle about a point....

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    71

    Rotating a rectangle about a point....

    I want to rotate a rectangle about a point, but I want the bass to stay put while the rest of the block moves..

  2. #2
    Member Regular Contributor Rosario Leonardi's Avatar
    Join Date
    Aug 2008
    Location
    Italy
    Posts
    352

    Re: Rotating a rectangle about a point....

    The bass?

    If you make a rotation around a point the only point that stand still is the pivot.

    You can compute the rotation with a rotation matrix.
    ~ ~ I tell you, realtime 3D is made of blood, sweat and screams! ~ ~

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Rotating a rectangle about a point....

    No, I think he meant the bass.

    Anyway, a combination of glRotate/glTranslate should do the trick if you are lost in matrices.

Posting Permissions

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