Jump to content
  • Advertisement
Sign in to follow this  
VanillaSnake21

Using the mouse to move the camera.

This topic is 4359 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

Hello, im trying to figure out how to move my 3-axis camera in the world. What technique should i use to get the angle that i should rotate the camera around a certain axis. Thnx for the replies.

Share this post


Link to post
Share on other sites
Advertisement
fast reply...

each loop get the amount the user moved the mouse in the x and y axes then rotate the camera target in the Y(up) axis by the amount in y multiplied by a sensitivity factor and rotate camera target in the X axis as you do for Y(limit the X axis for the camera doesnt 'loop'). You can do it using some trigonometry...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!