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.

DarkBASIC Discussion / camera limits

Author
Message
RCON
22
Years of Service
User Offline
Joined: 20th Apr 2003
Location:
Posted: 21st Apr 2003 04:22
I want to set some limits on how far the camera can pitch up and down.
my problem is, the camera defaults to 0 degrees, and when i pitch it up, it goes 0, then 359, etc..

so I can set a high limit to say 330 degrees
and the lower to 359 like this:

if CameraAngleX# 359 then CameraAngleX# = 359

but since it starts at 0, the camera shoots to 330, and when I bring the camera down to make it level, it shoots back when it hits 0.

anyone one know a way to fix this?

Login to post a reply

Server time is: 2025-05-16 23:54:58
Your offset time is: 2025-05-16 23:54:58