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 flips perspective at 180 and 360 degrees

Author
Message
Straxus
15
Years of Service
User Offline
Joined: 6th Oct 2009
Location: Beaverton, Oregon
Posted: 16th Feb 2011 18:09
Was here for a while in 2009 but life events disrupted my learning of DBP.
This is part of some code I was using for my spaceship game. It's been so long I can't remember if I really understood the code or not.
The problem is:
At 180 and 360 degrees on the Y axis the perspective changes.

Need help figuring it out if possible.
The full range is required for the project.

The Camera follows the object (in this case the bike model that comes with DBP)

Current Input Commands
1 = zoom in
2 = zoom out
mouse movement for camera view
F1 acceleration
F2 deceleration
F3 fast deceleration
W pivot down
S pivot up
D turn right
A turn left
E pivot right
Q pivot left

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 18th Feb 2011 15:04
You could try using the Set Camera To Follow command:


where OAY# = object angle y(1)

It seems to rotate the camera correctly, but the mousemove commands are not being implemented.

Login to post a reply

Server time is: 2024-11-23 03:05:43
Your offset time is: 2024-11-23 03:05:43