Hi Maik,

Sounds like a fun demo. Didn't have a chance to try it yet, but will try 
later.

On Sunday 21 January 2007 23:41, Maik Justus wrote:
> 1) the on-ground flag sets the origin of the aircraft on ground, not the
> wheels. How can I define an offset?

I don't know this off the top of my head for AIModel scripts. I'll try to look 
into it later.

>
> 2) if I add more waypoints to get smoother movements, the AI-J3 misses a
> waypoint on accelerating on the runway or later in the air and spins
> like hell around this point. The problem is, how it is checked, if a
> waypoint is reached. The distance to the target must be smaller than a
> generated value. But the algorithm fails to fly the aircraft near
> enough. It would be better to check, if the distance to the waypoint is
> increasing. If it was decreasing before, the waypoint is reached.
>

Yes, this is a rather annoying "feature" that I haven't completely solved yet. 
Each AI Aircraft has to get within a certain distance of a waypoint, before 
it skips to the next. This minimum required distance is dynamically 
determined based on speed of the aircraft. Given that steering capacity is 
limited, sometimes an aircraft skips a waypoint and needs to circle around 
it. And when it starts circling, it slows down, decreasing minimum distance 
again. I've tried clipping minimum distance, and varying other parameters, 
but results haven't been satisfactory yet.

FWIW, the current code is the result of quite a bit of experimentation, and 
while it forms an improvement over the original code, the spinning aircraft 
are steadily climbing up my personal annoyance scale. Until now, it hadn't 
quite reached the point where I decided to nail it once and for all. But, if 
other people's scenarios are suffering from spinning aircraft, it might be a 
good thing to consider fixing it :-). 

The practical issue though is that I won't have time before my departure to 
Canada (January 28), and I'm not sure I'll have the resources available while 
I'm there.

Cheers,
Durk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to