- 
          
- 
        Couldn't load subscription status. 
- Fork 19
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 | 
|---|---|
| Vector2start | Start position | 
| Vector2goal | Goal position | 
| boolallowDiag | 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