-
-
Notifications
You must be signed in to change notification settings - Fork 18
mp_grid_path
CryoEagle edited this page Feb 14, 2019
·
1 revision
Returns best path to target
mp_grid_path(start, goal, allowDiag)
Argument | Description |
---|---|
Vector2 start |
Start position |
Vector2 goal |
Goal position |
bool allowDiag |
Desc |
Returns: void
This function will store the closest and fastest path from the start to the goal, Simplex engine have powerful pathfinding logic.
GamePath p = mp_grid_path(new Vector2(96, 96), new Vector2(512, 512), false);
Find and save closes and fastest path to Gamepath p
.
Back to Motion Planning