Results 1 to 2 of 2

Thread: How to Rotate A Box Around A Pivot

  1. #1
    Member Newbie
    Join Date
    Jun 2005
    Posts
    42

    How to Rotate A Box Around A Pivot

    How can be rotated a box around a pivot?

    For example box dimension is 2cm X 5cm X 20cm.

    And if we want to rotate box around centre of the box, how can it be? (Pivot is centre of the box)

    ( glRotatef )

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    317

    Re: How to Rotate A Box Around A Pivot

    1. Translate( - PIVOT )
    2. Rotate
    3. Translate( PIVOT )


    (Do appropriate OpenGL commands in reverse order).

Similar Threads

  1. A rotate pivot question
    By seith in forum COLLADA
    Replies: 6
    Last Post: 04-09-2010, 12:26 PM
  2. How to Rotate an Object on Pivot Point
    By Sanjay Kumar Singh in forum OpenGL: Windows
    Replies: 1
    Last Post: 12-08-2006, 01:03 AM
  3. pivot point
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-19-2004, 04:34 AM
  4. Rotate and pivot
    By Reillin in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-25-2004, 04:18 PM
  5. Replies: 6
    Last Post: 10-09-2000, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean