Results 1 to 2 of 2

Thread: Object Movement

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2009
    Posts
    2

    Object Movement

    Hey Everybody,

    i`ve got a problem. I have implemented with vertex arrays a small object, a cuboid.
    And i am able to let it fly. But there is the problem that my object wont turn its nose to the direction that is pressed.

    For example the cuboid should turn to the right. Its moving to the right, but the object itself isnt turning.
    So it should move like a car.
    How can i achieve that?

    Well I am achieving that its turning, but my programm doesnt know where the front of my object is.
    I dont konw how to get it that always the "nose" is pointing to the direction into which the object is moving.

    Please help

    Would be very very grateful

    Thanks

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2008
    Location
    USA
    Posts
    134

    Re: Object Movement

    You need to know how much to turn the object in order to turn it. If it is moving along curved paths, then something is storing the angle at which the object is moving. Using that angle, at minimum, should help you to use something like glRotatef to rotate the cuboid.

Similar Threads

  1. movement of the object in polygon
    By Dathu in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-09-2008, 08:04 AM
  2. Object movement
    By Me6 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-25-2004, 07:06 AM
  3. object movement
    By drakstalker in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-04-2002, 12:42 PM
  4. Object movement
    By redknite in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-20-2000, 05:31 PM
  5. movement of one object
    By Claudio in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 07-10-2000, 01:26 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