Auto Drone Experiment v2

Golden - Custom level - Feb 8, 2016 from Windows
Revision #2, updated Jan 1, 1970
Play Edit 16 players liked this.

The second version this time with more optimized and rewritten code. This method uses the hypotenuse length of the orthogonal nodes to detect which is the best to move to. Canceling out those has get stuck in corners or wall pieces. The script also disallows the drone to double back on itself.

Now its much smarter, accurate and precise although there is still the occasional issue with certain layouts. And not taking the shortest route. Further fixes should make this work better.

This version still uses the same collision detection as the previous script, eventually I will implement the more precise version using a single query and working out the intersections of the objects with each tile. This should make the collision detection more accurate and more optimized.

--Golden--
Sorry Cralant if i stole it
all 100% credits belongs to Cralant
i modified and upgraded this level and changed init for lua

Downloads: 240 - Level ID: 20720

Parent