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 / Restricting the camera rotation

Author
Message
Woarther
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location: Sweden
Posted: 25th Feb 2010 19:32
Hello! I have run into yet another problem. How can I restrict the camera rotation? Right now, the player can "make a loop with the camera". I want to have it so that one can only "look vertical", but not beyond that.

I tried this, but it didn't really work.




Thanks in advance,
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 26th Feb 2010 00:59 Edited at: 27th Feb 2010 18:49
(me )

chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Feb 2010 12:01
Try something like:





cheers.

learning every day
Woarther
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location: Sweden
Posted: 26th Feb 2010 14:54
Thank you, chafari! It worked perfect!

There's one thing I don't understand though, and that is the function wrapvalue(). Could you(or someone else) explain what wrapvalue() does? :p
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Feb 2010 18:00
Highlight WrapValue() in the editor and press the F1 key!

TDK

Login to post a reply

Server time is: 2024-09-28 14:23:57
Your offset time is: 2024-09-28 14:23:57