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 Discussion / Angle should work

Author
Message
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 24th Nov 2005 06:41 Edited at: 24th Nov 2005 06:46
I'm having trouble with angles.

I have a jet fighter, and the physics seem to work fine, but when you turn around, up becomes down and down becomes up!

Please don't mind the indenting, that's just how I do it, and it's not as big of an indent in the DB editor.



Since media files are required, I've attached an exe.

Controls:

left arrow=turn left
right arrow=turn right
up arrow=pitch down
down arrow=pitch up
a=throttle up
z=throttle down

Thanks
Uncle Sam

--------------
Uncle Sam

Attachments

Login to view attachments
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 25th Nov 2005 01:34 Edited at: 25th Nov 2005 01:35
Thanks for all of the help I'm receiving.

--------------
Uncle Sam
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Nov 2005 14:01
Presumably no-one has responded because it's been asked (and answered) many, many times before and if you search the forum you will find many replies to this question.

Remember that objects are rotated to 'world co-ordinates' - not the object's co-ordinates.

TDK_Man

Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 25th Nov 2005 20:53 Edited at: 25th Nov 2005 20:56
Sorry, sometimes I forget to search first.

But I just did, and I can't find what I'm looking for. I'm not just doing the normal basic plane physics, like moving up, down, left, right, etc., I want mine to be more realistic, so that you turn left, and then pitch up to turn left really fast. Know what I mean?

--------------
Uncle Sam
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 26th Nov 2005 02:52 Edited at: 26th Nov 2005 02:52
With all of this help I'm getting , I'm making great progress!

--------------
Uncle Sam
Mohawk_91
21
Years of Service
User Offline
Joined: 14th Feb 2004
Location: Orlando
Posted: 30th Nov 2005 23:11
David Lawrence hasn't been aroun in a while but I think his site still has sample code links on it that will help you.
go here
www.muddleglum.arcon.net.nz copy and paste
good luck

Chuckles

Login to post a reply

Server time is: 2025-05-22 22:01:08
Your offset time is: 2025-05-22 22:01:08