Main algorithm is in Astar/FGAStar.cpp, the node i use is FGNode.cpp. The FGPlayer is calling the methods via its AStar interface. the synchronos version returns an array of Nodes, while the async version returns a "smoothed" path in an array of vectors. in the async version the player spawns an actor to move along the path. The FGPathfinder, which further smooths the path using arbitary velocity and draws its path along the way. When clicking the points on the grid, the player calls both unthreaded and threaded methods, and prints timers when they are done, for profiling.
vstokstad/AStar_threaded_interface_unreal
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
AStar async and sync interface to slap on basically any unreal actor that wants some fast pathfinding. Includes grid and node classes. Unreal Engine 4.26.2