Board index FlightGear Development AI Traffic

Collision distance  Topic is solved

Intelligent, computer controlled vehicles that drive/fly over the planet!

Collision distance

Postby vanosten » Sat Aug 08, 2020 6:01 pm

Hi

I tracked down method FGAIManager::calcCollision in src/AIModel/AIManager.cxx. It contains tgt_ht[] with 13 elements. I wonder what position and therefore which tgt_ht multiplayer objects have?

In the same file around line 517 lots of AiBoject types are handled, but not multiplayer and not 13 but 11. Also "ai_list" is defined, but I cannot find it. In http://wiki.flightgear.org/AI_Systems and gdata/Docs/AI_doc.html the table is also shorter.
=> where is the type list defined - and what position does AIMultiplayer have?
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Collision distance  

Postby vanosten » Sun Aug 09, 2020 8:49 pm

The answer is in src/AIModel/AiBase.hxx line 50.
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu


Return to AI Traffic

Who is online

Users browsing this forum: No registered users and 4 guests