#See if NavigationAgent is inside NavigationPolygon2D

3 messages · Page 1 of 1 (latest)

fleet talon
#

Hi, is there any way to check if a body is inside the navigationpolygon2d? I don't see any methods, so maybe just getting the mesh and intersecting it with a point would be enough. But don't know how to get to do this.

#

I think getting the Polygon fron NavigationPolygonInstance would be enough to get this working.

fringe citrus
#

What do you try to achieve? The NavigationAgent navigation path points or navigation map queries for a closest positions are always on navigation polygons. You can get the NavigationPolygon outlines and check them with the Geometry2D polygon functions.