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 / Aligning my F-16 to the matrix (second part)

Author
Message
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 20th Feb 2004 22:13
Greetings!

Well...I posted this again because I haven't found a way to align my plane to the matrix (or to the ground...). I put the code here 'cause there's no better way to see than see it for yourself, so here's the code.

Media needed (just for knowing what the files in the code are, push the Code button):


I splitted the code in a lot of labels....I hope you all understand the structure. BTW I didn't commented it too much...
I hope you all help me...now that i'm showing the code...

Game Code:


I hope that now someone help me and my problem gets resolved. Without that the plane can't land ....and we all know that ALL the planes must descend and land correctly (unless it's got a motor failure, low fuel or something like that... )

Thanks in advance

Current Projects: F-16 Gold Wings
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 20th Feb 2004 22:16
i can be bothered to find media for all that! but this might help:


its just a squashed cube on a random matrix but it works and it commented a bit too maybe you can adapt it for use with a plane?


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 21st Feb 2004 02:43 Edited at: 21st Feb 2004 02:44
i don't know if this is what you mean, but here is one that might work. (aligning to a matrix)
i'm using matrix 1 as the matrix that the plane aligns to, and i'm using object 1 as the f-16, and mh as the variable for the matrix height

mh=get matrix height(1,object position x(1),object position z(1))
position object 1,object position x(1),mh,object position z(1)

that was for DBC, if u have dbpro, try something like it
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 21st Feb 2004 08:47
Thanks ReD_eYe!! I'm gonna test it now , and don't worry for the media...you can use cubes...cones..anything...as long as it seems like a flight sim *lol* .

Oh and Tim Ballisto....mmm nope...that's not what I mean...take a look at this post I did some time ago, it shows my problem with images and all...I hope you understand when you see it

http://darkbasic.thegamecreators.com/?m=forum_view&t=25095&b=10

Current Projects: F-16 Gold Wings
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 22nd Feb 2004 02:50
ReD_eYe, the code it's useful but it doesn't exactly the problem.....I'll write a simple program that shows the problem and post it the monday 21 (gonna exit the sunday )....I hope that the program I'll write will be useful to understand....

Current Projects: F-16 Gold Wings
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 23rd Feb 2004 05:37
Here's the sample program, as I promised. It works exactly like my original code (except the speeds because I put a 5000x5000 matrix and I got to reduce slightly the speeds). I hope that with this program someone can help me .



Current Projects: F-16 Gold Wings
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 24th Feb 2004 06:19
:bump: anyone here???

Current Projects: F-16 Gold Wings
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Feb 2004 12:53
I don't think anyone knows how to do it man... Sorry.

I tried, and failed...

And Red_Eye even posted a snippet, but it wasn't what you wanted...

I think you'll have to either try to figure this one out on your own, or look for some algorithms on the net

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Feb 2004 04:43
Oh well.......gotta figure it out myself (and I don't have too much math )

Anyway thank you so much all for at least trying to help me

Current Projects: F-16 Gold Wings

Login to post a reply

Server time is: 2025-05-22 19:30:00
Your offset time is: 2025-05-22 19:30:00