Skip to main content
GameDev.net gamedev.net
🔒 Locked

transformations in game

Started by Chuck3d Sep 4, 2003 at 10:13 AM 1 replies 550+ views
Original Post
Chuck3d
Chuck3d
Hello! Imagine that you are in a fps game. When you move the mouse, the world turn around you. The world turn around the X-axe and around the Y-axe. But when you move the mouse what is the fisrt transformation to apply ? X or Y ? The max in first? Thank You Chuck [edited by - Chuck3d on September 4, 2003 11:36:24 AM]
!o)
Atheist
Atheist
I´d say you rotate only once around a vector that is perpendicular to your direction of view and the direction the mouse is being moved.
Chuck3d
Chuck3d
Thank you ! I will calculate a vectorial factor with this two vectors to find the rotation one, and I will create the associate matrix of the rotation!

Thank You very much



!o)

(sorry for my bad english)

[edited by - Chuck3d on September 5, 2003 7:03:07 AM]

[edited by - Chuck3d on September 5, 2003 7:03:51 AM]
!o)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.