Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /