Jump to content
  • Advertisement
Sign in to follow this  

freelook fps always rotating around 0,0 (wide orbit)

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

Hi, I use this to fake a pseudo freelook like in fps, but it always rotates around coordinate 0,0. So when i go left a bit, the orbit increases because it stills rotates around 0,0, even though 0,0 is not in the centre anymore. It would like it to always rotate around the center of the screen. I hope you know what i mean. How would i go about doing this ?
	/* Rotations for FREELOOK */
	if(init) {

	else {

Share this post

Link to post
Share on other sites
rotations happen around the current origin, u can use glTranslate to move this

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!