Skip to content

mp_grid_path

CryoEagle edited this page Feb 14, 2019 · 1 revision

mp_grid_path

Returns best path to target

Syntax:

mp_grid_path(start, goal, allowDiag)
Argument Description
Vector2 start Start position
Vector2 goal Goal position
bool allowDiag Desc

Returns: void

Description:

This function will store the closest and fastest path from the start to the goal, Simplex engine have powerful pathfinding logic.

Example:

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

Clone this wiki locally