2D navigation and pathfinding node.
Navigation2D provides navigation and pathfinding within a 2D area, specified as a collection of [NavigationPolygon] resources. By default, these are automatically collected from child [NavigationPolygonInstance] nodes.
https://godotengine.org/asset-library/asset/117
Returns the navigation point closest to the point given. Points are in local coordinate space.
Returns the owner of the [NavigationPolygon] which contains the navigation point closest to the point given. This is usually a [NavigationPolygonInstance].
Returns the object's [RID].
Returns the path between two given points. Points are in local coordinate space. If [code]optimize[/code] is [code]true[/code] (the default), the path is smoothed by merging path segments where possible.
The XY plane cell size to use for fields.
This value is used to detect the near edges to connect compatible regions.
A bitfield determining all navigation map layers the navigation can use on a [method Navigation2D.get_simple_path] path query.