diff options
Diffstat (limited to 'modules/navigation/nav_map.h')
-rw-r--r-- | modules/navigation/nav_map.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/navigation/nav_map.h b/modules/navigation/nav_map.h index 2bd9459626..8d529f464e 100644 --- a/modules/navigation/nav_map.h +++ b/modules/navigation/nav_map.h @@ -54,8 +54,9 @@ class NavMap : public NavRid { Vector3 up = Vector3(0, 1, 0); /// To find the polygons edges the vertices are displaced in a grid where - /// each cell has the following cell_size. - real_t cell_size = 0.25; + /// each cell has the following cell_size and cell_height. + real_t cell_size = 0.25; // Must match ProjectSettings default 3D cell_size and NavigationMesh cell_size. + real_t cell_height = 0.25; // Must match ProjectSettings default 3D cell_height and NavigationMesh cell_height. bool use_edge_connections = true; /// This value is used to detect the near edges to connect. @@ -131,6 +132,9 @@ public: return cell_size; } + void set_cell_height(real_t p_cell_height); + real_t get_cell_height() const { return cell_height; } + void set_use_edge_connections(bool p_enabled); bool get_use_edge_connections() const { return use_edge_connections; |