Page 1 of 1

Flight behaviour

Posted: Mon Mar 22, 2010 9:25 am
by BasiC
I was wondering if you have now totally mimicked OTA's Flight behaviour.
If you have was it done using lua?

Re: Flight behaviour

Posted: Mon Mar 22, 2010 5:49 pm
by zuzuf
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.

Re: Flight behaviour

Posted: Tue Mar 23, 2010 1:35 am
by BasiC
I was hoping its in lua...k NVM ;_:

Re: Flight behaviour

Posted: Fri Apr 23, 2010 6:44 pm
by BasiC
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.

Re: Flight behaviour

Posted: Fri Apr 23, 2010 7:37 pm
by zuzuf
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 :).

Re: Flight behaviour

Posted: Sat Apr 24, 2010 7:29 pm
by BasiC
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?

Re: Flight behaviour

Posted: Sat Apr 24, 2010 7:49 pm
by zuzuf
You mean a Lua script that would emulate it ? Yes, I think I could.

Re: Flight behaviour

Posted: Fri Apr 30, 2010 2:09 am
by BasiC
Can you make it than?

Re: Flight behaviour

Posted: Fri Apr 30, 2010 7:37 am
by zuzuf
What do you want to do with it ? (I need to know which Lua API to use and how the script should be used).

Re: Flight behaviour

Posted: Fri Apr 30, 2010 6:14 pm
by BasiC
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?

Re: Flight behaviour

Posted: Fri Apr 30, 2010 6:42 pm
by zuzuf
BasiC wrote:I want to use it in Spring...
I don't know much about Spring scripting. Is there some documentation about it somewhere ?
BasiC wrote:Also in what way is it different from the original TA flight behavior?
That's a good question, if I knew it precisely it would not be different at all :lol: . 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.

Re: Flight behaviour

Posted: Fri Apr 30, 2010 6:46 pm
by BasiC

Re: Flight behaviour

Posted: Sun May 02, 2010 11:13 am
by zuzuf
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 :P

Re: Flight behaviour

Posted: Sun May 02, 2010 12:36 pm
by Balthazar
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 :P
It`ll be great, if we`ll get a fine planes behaviour.

Re: Flight behaviour

Posted: Mon May 10, 2010 1:55 pm
by BasiC
Any news?

Re: Flight behaviour

Posted: Tue May 11, 2010 11:07 am
by zuzuf
I am still busy ... but I am going to have a few days off soon :D

Re: Flight behaviour

Posted: Sun Jun 20, 2010 12:55 pm
by BasiC
boop

Re: Flight behaviour

Posted: Sun Jun 20, 2010 3:16 pm
by zuzuf
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 :( ) ...