Jump to content
colaster

Using mouse to rotate camera

Recommended Posts

Hello all,

 

I've just joined the forums, though I've used their excellent advice for years. 

 

I'm hoping someone can help; I'm trying to create a photography mod. To this end I have taken apart the BIS cameraOld function to make use of it's focus option. I have attached the camera to the player, and can move both on the horizontal using the mouse, however, I can't work out how to pitch the camera up and down. I know it's got something to do with setVectorDirAndUp and all that lot, but despite much experimenting and gnashing of teeth I can't seem to make the break through.

 

Not sure if there's enough info here for people to help, but if anyone can it would be much appreciated.

 

Thanks for your time.

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×