Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


3D rotational equations on the X,Y,Z axises

This topic is 5559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

To anyone interested, Firstly I have to thank the others who helped me out with the 3d-2d conversion equations for making my wireframe. I am now looking at rotating my vertices, I have the 2d-3d conversion in working order, I now need to get some help with rotating the vertices of an object/model. I have a fairly good understanding of triganometry, although 3dimentional rotational equations has got me stumped. If anyone could get me some trig. equations for X,Y and Z rotation, I would really appreciate it. >> Reiken

Share this post

Link to post
Share on other sites
Rotation around X-axis:
[1 0 0 0]
[0 cos -sin 0]
[0 sin cos 0]
[0 0 0 1]

Rotation around Y-axis:
[cos 0 sin 0]
[0 1 0 0]
[-sin 0 cos 0]
[0 0 0 1]

Rotation around Z-axis:
[cos -sin 0 0]
[sin cos 0 0]
[0 0 1 0]
[0 0 0 1]

To rotate around an arbitrary vector:
-Rotate vector onto the X, Y, or Z axis
-Rotate around the axis
-Rotate back to the original vector

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!