Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About rockwall

  • Rank
  1. rockwall

    quick question on rotations and such

    actually, i've been using euler angles, but i'm still stuck. i'm rotating with this: glRotatef(yrot, 0, 1, 0); glRotatef(xrot, 1, 0, 0); glRotatef(zrot, 0, 0, 1);
  2. i am making a game engine, and i need to create a function that gives me rotation about the x, y, and z axis if i give it and up vector and a forward vector. in other words, i need something that tells me the orientation of an object if i give the function a vector for the direction it should be facing and a vector for which way is up. any help is useful, but the more complete the better thanx! note: rotation is done by rotating about the y axis, then x, then z, if it makes a difference.(probably does) also, i'm using glRotatef, if that's important [Edited by - rockwall on November 24, 2005 2:58:22 PM]
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!