Sign in to follow this  

Attatching viewmodel to camera

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

Guest Anonymous Poster
In FPS you can rotate freely around the world Y axis and with in a 180 degree arc around the cameras x axis. Its really very simple. When you push the mouse left or right you use the Y axis to rotate around, make sure to rotate every thing opposite since this is the camera you are rotating. And when you push the mouse up and down use the cameras x axis, again make sure to rotate everything by the reverse. The only difference here is to make sure check the angle doesn’t go above 90 or below -90. You can use the vector dot product between the world y axis and the cameras z axis to determine the angle.

Share this post


Link to post
Share on other sites
i am using a system like this: in render function load the identity matrix and render you model or make the models render before camera movements. works well..

Share this post


Link to post
Share on other sites

This topic is 4750 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this