diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-08 09:19:19 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-08 09:19:19 +0200 |
commit | 207c747ac0266e4c29528df83328cb2c7e2deda5 (patch) | |
tree | 7d3779170432aaddeae0a9eb7065e35cebb008da /modules/gridmap/grid_map.h | |
parent | 6ac1a811dd027c6708504f691a5e60b6bcd70885 (diff) | |
parent | 41c529a94d7c690dca127bbc4f37c7f65d040f6b (diff) |
Merge pull request #64193 from smix8/navigation_gridmap_navmap_change_4.x
Add GridMap function to change navigation map for baked navigation regions
Diffstat (limited to 'modules/gridmap/grid_map.h')
-rw-r--r-- | modules/gridmap/grid_map.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.h b/modules/gridmap/grid_map.h index 4a4e970fd3..6a53457d25 100644 --- a/modules/gridmap/grid_map.h +++ b/modules/gridmap/grid_map.h @@ -152,6 +152,7 @@ class GridMap : public Node3D { uint32_t collision_mask = 1; Ref<PhysicsMaterial> physics_material; bool bake_navigation = false; + RID map_override; uint32_t navigation_layers = 1; Transform3D last_transform; @@ -247,6 +248,9 @@ public: void set_bake_navigation(bool p_bake_navigation); bool is_baking_navigation(); + void set_navigation_map(RID p_navigation_map); + RID get_navigation_map() const; + void set_navigation_layers(uint32_t p_navigation_layers); uint32_t get_navigation_layers() const; |