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 Professional Discussion / Rotating camera flips from side to side

Author
Message
Sky Warrior
8
Years of Service
User Offline
Joined: 19th Jan 2016
Location:
Posted: 19th Jan 2016 06:54
I have camera in middle of circle.

I have it rotating all 360 degrees continuously.

Problem - it flips around from side to side and doesn't stay horizontal.

How can I keep it horizontal?
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 19th Jan 2016 09:16
Maybe it's pointing at a created object, which might skew the rotation. To keep the camera perfectly flat...

SET CAMERA ANGLE 0,ang#,0

Just increment ang# or set it to your rotation value, this should turn it around and keep it perfectly flat.
Once you've set the angle, you can then use freeflight rotation, like if you wanted to tilt the camera down a little after rotating...

PITCH CAMERA DOWN 15.0

But setting the angle resets any freeflight rotation, so set the angle first then adjust if you need.
Men_of_Fun
8
Years of Service
User Offline
Joined: 13th Dec 2015
Location:
Posted: 20th Jan 2016 15:22
Thanks, I will try that .

Login to post a reply

Server time is: 2024-03-29 14:15:32
Your offset time is: 2024-03-29 14:15:32