Navigation2D.getSimplePath

Returns the path between two given points. Points are in local coordinate space. If optimize is true (the default), the path is smoothed by merging path segments where possible. Note: This method has known issues and will often return non-optimal paths. These issues will be fixed in Godot 4.0.

struct Navigation2D
@nogc nothrow
PoolVector2Array
getSimplePath
(
in Vector2 start
,
in Vector2 end
,
in bool optimize = true
)

Meta