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 / camera control (free movement)

Author
Message
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 2nd Aug 2010 14:24
I am working on function that control the camera and for some reason I have to make the camera negative that is I have to subtract the camera angle x from 0. This is the only way I get the program to run ok. Does anybody know why I have to do this?

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 2nd Aug 2010 15:37
Try this:

You will need to make globals
AngleY#
AngleX#
Distance#
CameraX#
CameraY#
CameraZ#

The fastest code is the code never written.
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 2nd Aug 2010 15:57
Here is another way you could do it:



So many games to code.......so little time.

Login to post a reply

Server time is: 2026-07-25 08:30:00
Your offset time is: 2026-07-25 08:30:00