diff --git a/doc/classes/Navigation2D.xml b/doc/classes/Navigation2D.xml index ed00a277b3f..54553e4b8be 100644 --- a/doc/classes/Navigation2D.xml +++ b/doc/classes/Navigation2D.xml @@ -41,10 +41,10 @@ - + The XY plane cell size to use for fields. - + This value is used to detect the near edges to connect compatible regions. diff --git a/scene/2d/navigation_2d.cpp b/scene/2d/navigation_2d.cpp index 886541cb1b5..87fe05bce45 100644 --- a/scene/2d/navigation_2d.cpp +++ b/scene/2d/navigation_2d.cpp @@ -84,8 +84,8 @@ RID Navigation2D::get_closest_point_owner(const Vector2 &p_point) const { Navigation2D::Navigation2D() { map = Navigation2DServer::get_singleton()->map_create(); - set_cell_size(10); // Ten pixels - set_edge_connection_margin(100); + set_cell_size(1); // One pixel + set_edge_connection_margin(1); } Navigation2D::~Navigation2D() {