summaryrefslogtreecommitdiff
path: root/modules/recast/navigation_mesh_generator.h
diff options
context:
space:
mode:
authorjfons <joan.fonssanchez@gmail.com>2019-10-16 11:33:47 +0200
committerjfons <joan.fonssanchez@gmail.com>2019-10-16 12:01:10 +0200
commit298bd3f88a42c57bad4a793542d8f843f889a75b (patch)
treedb1be36c6a1fc46a31299ad8f2fb2215c62ca040 /modules/recast/navigation_mesh_generator.h
parenta1033aea51515cd5f831cedf9834ea376200356a (diff)
Add option to create navmesh from objects in group
Adds a new NavigationMesh property to select which objects will be taken into account for the generation. By default it will use all the NavigationMeshInstance children to keep compatibility. The new modes allow to build the NavigationMesh from all the nodes belonging to a specific group, and optionally include their children too.
Diffstat (limited to 'modules/recast/navigation_mesh_generator.h')
-rw-r--r--modules/recast/navigation_mesh_generator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/recast/navigation_mesh_generator.h b/modules/recast/navigation_mesh_generator.h
index 30a6e3c835..f19622a4a9 100644
--- a/modules/recast/navigation_mesh_generator.h
+++ b/modules/recast/navigation_mesh_generator.h
@@ -47,7 +47,7 @@ protected:
static void _add_vertex(const Vector3 &p_vec3, Vector<float> &p_verticies);
static void _add_mesh(const Ref<Mesh> &p_mesh, const Transform &p_xform, Vector<float> &p_verticies, Vector<int> &p_indices);
static void _add_faces(const PoolVector3Array &p_faces, const Transform &p_xform, Vector<float> &p_verticies, Vector<int> &p_indices);
- static void _parse_geometry(Transform p_accumulated_transform, Node *p_node, Vector<float> &p_verticies, Vector<int> &p_indices, int p_generate_from, uint32_t p_collision_mask);
+ static void _parse_geometry(Transform p_accumulated_transform, Node *p_node, Vector<float> &p_verticies, Vector<int> &p_indices, int p_generate_from, uint32_t p_collision_mask, bool p_recurse_children);
static void _convert_detail_mesh_to_native_navigation_mesh(const rcPolyMeshDetail *p_detail_mesh, Ref<NavigationMesh> p_nav_mesh);
static void _build_recast_navigation_mesh(Ref<NavigationMesh> p_nav_mesh, EditorProgress *ep,