Auto Drone Experiment v2Cralant - Custom level - from Android
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.
Views: 1572 Downloads: 394 Unique objects: 4 Total objects: 20
LEVEL ID: 5340