[via: Beedigital, draw.logic] Source code to download of pathfinding with AS3 in 3D!
I’m looking forward to have some times to look at the source, btw I’m wondering if it is the shortest path taken or not? Also why doesn’t it follow exactly the cube structure, the path seems to take “air” sometimes. |
Ahmet
Hi Ahmet, my implementation of the algorithm doesn’t always find the shortest path. I’m not sure if that is just the nature of the algorithm itself or something that I have overlooked. And yes, empty blocks are treated as walkable areas and the entire 5x5x5 grid is searched. That’s why the path often takes a route through the empty nodes.
Pingback: Home