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 / Spaceship control

Author
Message
Fr34KGoD
21
Years of Service
User Offline
Joined: 12th Jun 2003
Location:
Posted: 12th Jun 2003 20:26
Hi i've got a big problem! Iam trying to control a space ship using the mouse:

x#+x#mousemovex() ....
rotate camera x#,y#,z# ...

Thist works great but i've got a problem with the axis! when u look up or down by 90 degrees, u do not turn to the left or right only spin around your own axis. But i need something where i can turn to left and right without this problem! (like FreeSpace2 Freelancer X-Wing alliance ...)

i hope u know what i mean
plz help me with a code snippet or stuff like that thx in advance
Greetz Fr34KGoD
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 13th Jun 2003 05:47
rotate x is pitch (up and down) rotate y is yaw (left and right) The code should be:

y#+y#mousemovex() ....
rotate camera x#,y#,z# ...

Current Projects: mini BSP maker 50%, Height Mapper with many features 75%, FPS/RTT Nameless at the moment 15%
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 13th Jun 2003 05:48
rotate x is pitch (up and down) rotate y is yaw (left and right) The code should be:

y#=y#+mousemovex() ....
rotate camera x#,y#,z# ...

Current Projects: mini BSP maker 50%, Height Mapper with many features 75%, FPS/RTT Nameless at the moment 15%

Login to post a reply

Server time is: 2024-09-20 12:22:51
Your offset time is: 2024-09-20 12:22:51