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 / Camera X angle restriction prob

Author
Message
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 29th Jul 2007 08:39
I'm working on my FPS still, I want to place a restriction of the X rotation of my camera because obviously it is not a good thing to be able to turn it upside down. Here's my entire mouselook thing so far:



It's that last seperated 2 lines there... what am I doing wrong? Obviously something, because it it NOT working. Do I need to use wrapvalue?

Well whatever it is, I could really use some help

Ty in advance
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 29th Jul 2007 08:47 Edited at: 29th Jul 2007 09:08
Nvm, with Chafari's help made it like this:



But still a bit shaky when it reaches the limits, anyone know how to fix?
Jane Doe
17
Years of Service
User Offline
Joined: 29th Jun 2007
Location:
Posted: 29th Jul 2007 09:30
See if this works:

if camera angle x(0) > 90.0 then xrotate camera 0, 90.0
if cameraangle x(0) < -90.0 then xrotate camera 0, -90.0

- Jane
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 29th Jul 2007 10:11
Hmm, still acts the same way I had it before.

But I added some curvevalue stuff and it seems to be nice and smooth now. Thanks though

Now back to my collision thread... and waiting for someone who knowes anything about sparky's...

Login to post a reply

Server time is: 2024-11-25 13:26:05
Your offset time is: 2024-11-25 13:26:05