Results 1 to 2 of 2

Thread: How to face the right direction

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    England
    Posts
    1

    How to face the right direction

    My main problem is determining the correct angles to rotate my object through. I know the current position of the object (In 3D space) and the current heading (As a Vector). I have also calculated the new heading (As another Vector). I need my object to rotate from facing the current heading to facing the new heading.

    Any clues or sources of information that anyone could recommend for my problem would be greatly appreciated.

    Thanks in advance

    B

  2. #2
    Member Contributor
    Join Date
    Sep 2003
    Location
    Jersey, Channel Islands
    Posts
    66

    Re: How to face the right direction

    You may find the following useful:
    http://www.gamedev.net/community/for...opic_id=198183

    At least it'll get you started.

    mad

Similar Threads

  1. How can I make an object face a certain direction?
    By Rakehell in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-14-2013, 08:53 PM
  2. changing back face to front face in vertex shader
    By hoschie211 in forum OpenGL: GLSL
    Replies: 1
    Last Post: 11-03-2009, 12:36 AM
  3. opengl gml per face normal and per face vertex question
    By GaMEFRo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-06-2006, 10:49 AM
  4. Direction of the light
    By KeSh in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-25-2004, 02:19 AM
  5. getting/saving direction
    By jonn in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 02-04-2001, 12:59 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