Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Making the camera follow the mouse

Author
Message
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 25th Jul 2007 18:04 Edited at: 25th Jul 2007 18:05
How would one make the camera mouse controls invert when the object turns around? This is my code so far:
^ it works, but once you turn around, the controls invert.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 25th Jul 2007 21:51
Instead of "xrotate camera" you may have better luck with "pitch camera up" and instead of "zrotate camera" you may want to use "roll camera right". Experiment with these commands.

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 25th Jul 2007 23:01
oh, ok, i'll try that.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 26th Jul 2007 00:13
Eh... There is no way to edit that code i have to make it adjust? 'Cause the roll/pitch messes that whole thing up :-s.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!

Login to post a reply

Server time is: 2024-11-26 12:33:13
Your offset time is: 2024-11-26 12:33:13