Flight behaviour
Flight behaviour
I was wondering if you have now totally mimicked OTA's Flight behaviour.
If you have was it done using lua?
If you have was it done using lua?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
Currently no OTA behavior is simulated with Lua (all mods should run unmodified on TA3D without having to use any Lua magic) even though it's possible to simulate many things with current Lua API.
Flight behavior has been improved a lot (mainly for units like the Arm brawler) but I've rewritten some code related to pathfinding which is not perfect for all units yet.
Flight behavior has been improved a lot (mainly for units like the Arm brawler) but I've rewritten some code related to pathfinding which is not perfect for all units yet.
=>;-D Penguin Powered
Re: Flight behaviour
I was hoping its in lua...k NVM ;_:
Re: Flight behaviour
Can you explain how the fighter behaves though?I mean how does it work in the different situations?What is the physics behind it?How can i emulate it?Cause fomr watching videos i still cant really understand how it behaves like it does.
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
The only thing physically correct here is the plane's orientation : think of a mass attached to the plane like a pendulum.
Except for this, planes aim progressively to their target (enemy, map position or anything that can be a target position) at a given speed (which is set in the unit *.FBI file). Acceleration and speed limits are also set in the FBI file.
Unfortunately I could not reverse engineer plane's movements from OTA so I improvised a bit .
Except for this, planes aim progressively to their target (enemy, map position or anything that can be a target position) at a given speed (which is set in the unit *.FBI file). Acceleration and speed limits are also set in the FBI file.
Unfortunately I could not reverse engineer plane's movements from OTA so I improvised a bit .
=>;-D Penguin Powered
Re: Flight behaviour
That's the issue...fighter movement in OTA is very fun...I have been trying to get plains in Spring to move liek that but I am unable to...Either they move correctly or attack correctly but they can't do both like in OTA.
Do you think You'd be able to make a lua version of how plains move in TA3D?
Do you think You'd be able to make a lua version of how plains move in TA3D?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
You mean a Lua script that would emulate it ? Yes, I think I could.
=>;-D Penguin Powered
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
What do you want to do with it ? (I need to know which Lua API to use and how the script should be used).
=>;-D Penguin Powered
Re: Flight behaviour
I want to use it in Spring...I know Spring is sort of a rival project but I wont forget to mention everywhere its from TA3d if you write this XD
Also in what way is it different from the original TA flight behavior?
Also in what way is it different from the original TA flight behavior?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
I don't know much about Spring scripting. Is there some documentation about it somewhere ?BasiC wrote:I want to use it in Spring...
That's a good question, if I knew it precisely it would not be different at all . There is some physics to simulate part of it (mainly angles), TA3D uses velocity/acceleration parameters the way OTA does (at least I think OTA works the same way here). For the rest I don't know how OTA works, I don't know how OTA computes planes altitude when landing/taking off (TA3D simulates a follower system, difference between plane altitude and targeted altitude decreases exponentially with time), how planes anticipate variations of ground height or how trajectories are planned.BasiC wrote:Also in what way is it different from the original TA flight behavior?
=>;-D Penguin Powered
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
Interesting, I've read a bit the Lua documentation, it seems to have the required functions. I may try to write this script, but not this week since I'll be a bit busy
=>;-D Penguin Powered
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Flight behaviour
It`ll be great, if we`ll get a fine planes behaviour.zuzuf wrote:Interesting, I've read a bit the Lua documentation, it seems to have the required functions. I may try to write this script, but not this week since I'll be a bit busy
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
I am still busy ... but I am going to have a few days off soon
=>;-D Penguin Powered
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Flight behaviour
Well, I really don't have time to work on that right now. I won't have time before I finish my exams (1 week and an half left ) ...
=>;-D Penguin Powered
Who is online
Users browsing this forum: No registered users and 15 guests