A* Pathfinding Project

Compatible with Entities (ECS) and DOTS Framework?


Im only using the free version of the A*Pathfinding project, so I know I cannot jobify the calculations, but can I use it to calculate paths and move EntityComponentSystem (ECS) Entities? If yes, how would I do that?



You can request paths directly from the AstarPath component. If you want to use modifiers you could use a shared Seeker component (only one for the entire scene) to later post-process the path (with the Seeker.PostProcess call).
See https://arongranberg.com/astar/docs/callingpathfinding.html#calling-directly
You could write a custom movement script that uses ECS code to move the entities: https://arongranberg.com/astar/docs/custom_movement_script.html


Thanks! Ill go check those out.


@aron_granberg Is requesting paths directly from the AstarPath component a Pro feature? If it is, there will be debate in purchasing it, but it would also be neat if there was a free+ version for students (although I have no idea how bad verification of “active student status” would be, so that’s more an idle thought than an actual recommendation).

EDIT: I was trying to use AstarPath.active. I figured it out now.