.dat file for vtol

YSFlight addon development, questions, tutorials, & more!
Post Reply
User avatar
Silver Sergeant
Rookie
Rookie
Posts: 57
Joined: Sun Jan 05, 2014 5:10 am
Favorite Aircraft: Mig 29 fulcrum
Has thanked: 11 times
Been thanked: 1 time

.dat file for vtol

Post by Silver Sergeant » Wed Jan 22, 2014 11:21 am

i was trying hard to figure out how to give your plane you created the ability to vtol
but,sadly i can't seems to find a way, does any one know the code to add the ability to vtol? in the .dat file.
Image <-- i am not that blue creature in the cockpit now

я не русский. лололол :D

NightRaven
Senior Veteran
Senior Veteran
Posts: 1848
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: .
OS: windoze 10 64-bit
Has thanked: 562 times
Been thanked: 614 times

Re: .dat file for vtol

Post by NightRaven » Wed Jan 22, 2014 11:58 am


User avatar
Flake
VFA-49
VFA-49
Posts: 4357
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 838 times
Been thanked: 1247 times
Contact:

Re: .dat file for vtol

Post by Flake » Wed Jan 22, 2014 1:39 pm

Thrust vector or helicopter.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
ForeverYMonster
Contributor
Contributor
Posts: 240
Joined: Tue Dec 03, 2013 5:39 pm
Favorite Aircraft: Su-35/Su-37
Has thanked: 4 times
Been thanked: 7 times

Re: .dat file for vtol

Post by ForeverYMonster » Wed Jan 22, 2014 8:45 pm

I introduced him into the Harrier, which he seems to be very interested in, so im guessing Thrust Vector

-- Wed Jan 22, 2014 3:45 pm --

I introduced him into the Harrier, which he seems to be very interested in, so im guessing Thrust Vector
Image

User avatar
Silver Sergeant
Rookie
Rookie
Posts: 57
Joined: Sun Jan 05, 2014 5:10 am
Favorite Aircraft: Mig 29 fulcrum
Has thanked: 11 times
Been thanked: 1 time

Re: .dat file for vtol

Post by Silver Sergeant » Thu Jan 23, 2014 12:38 am

thanks for the replies 8-) ,
but i can't understand what the TRSTDIR0 and TRSTDIR1 means. is it possible for you guys to explain a little?
like what it is suppose to simulate, and how to properly place it.
Image <-- i am not that blue creature in the cockpit now

я не русский. лололол :D

User avatar
Flake
VFA-49
VFA-49
Posts: 4357
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 838 times
Been thanked: 1247 times
Contact:

Re: .dat file for vtol

Post by Flake » Thu Jan 23, 2014 12:55 am

THRUSTDIR0 and THRUSTDIR1 are the two positions the nozzle can be in, 0 being normal and 1 being deployed.

Imagine a line starting at 0 0 0 and drawn to the point specified. the direction this arrow points is the direction the thrust goes.

for eg try these:

THRUSTDIR0 0m 0m -1m
THRUSTDIR1 0m -1m 0m

(Although I could be wrong and it's acutally inverted... IE from the point towards 0,0,0...)

I trust you already know that X Y Z is Left/Right, Up/Down, Forwards/Backwards?
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
decaff_42
Staff
Staff
Posts: 3628
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 697 times
Been thanked: 1470 times
Contact:

Re: .dat file for vtol

Post by decaff_42 » Thu Jan 23, 2014 7:17 am

Code: Select all

TRSTVCTR TRUE                 #HAS THRUST VECTORING CAPABILITY?
TRSTDIR0 0.0m 0.0m 1.0m       #Thrust vector 0
TRSTDIR1 0.0m 1.0m 0.0m       #Thrust vector 1
That is from the default av-8b dat file. In the DAT file, the coordinates go Y,Z,X. This is true for all the coordinate inputs In the dat file. So in this case the thrust vector is the direction the thrust is being applied (The opposite direction the exhaust is going).

Y is left/right
Z is up/down
X is forward/backward

This is actually a common aerospace Coordinate system setup for aircraft, although for whatever reason we have the positive z axis direction pointing to the ground...Don't ask me why. :?
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Server Flight Log
Addon Database Submit Addon To Database

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests