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 / Is this the way it supposed to be?

Author
Message
Mr_Insane
23
Years of Service
User Offline
Joined: 14th Nov 2002
Location: United States
Posted: 3rd Jun 2003 01:28
ok i'm using a flight simulator code example, i loaded my ship in.. everything like the ship thrusts correctly where its pointing andeverything etc..

and now the question to ask. when my ships on the horizontal view, the ship yaws when using the left and right arrow keys.. but when the ships facing up or down, the ship rolls when its using arrow keys..

is this normal??
Dr DooMer
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 3rd Jun 2003 03:38 Edited at: 3rd Jun 2003 03:38
Not really for a flight simulator, that's more of the movement system for an FPS.

What's happening is that your left and right keys are rotating the object around the world Y axis, regardless of what the objects' X and Z angles are. To make it turn on it's local axis is a little more difficult, as you've got a few problems to contend with - gimbal lock for one.

"I am a living, thinking entity who was created in the sea of information."
Mr_Insane
23
Years of Service
User Offline
Joined: 14th Nov 2002
Location: United States
Posted: 3rd Jun 2003 05:45
that kinda sucks.. I doubt any space combat has that kind of movement.. I wondering if theres any example source code for free flight example for DB pro.. the the freeflight made in DBV1 don't work with DbPro...

so it doesn't matter if it has real phsyics or not..

I was very disappointed when I say the ship rolling instead of turning when it was on the Y axis.
Dr DooMer
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 3rd Jun 2003 05:57
I haven't written any myself, not only because I haven't needed to, but also because I don't know how! Although, if you're using the free flight commands that are built into DBPro, it may be due to some bugs - I remember having rotation bugs regarding the Y axis myself.

If you want to write your own code for free flight, you'll probably need to know how to use rotation matrices or quarternions, neither of which I've explored much.

"I am a living, thinking entity who was created in the sea of information."

Login to post a reply

Server time is: 2026-07-11 14:55:25
Your offset time is: 2026-07-11 14:55:25