You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Change GridMap navigation_layers to be per mesh_library item
Changes GridMap navigation_layers from a single bitmask for the entire GridMap to a bitmask for each item used in the mesh_library with a baked navmesh.
This commit is contained in:
@@ -99,6 +99,7 @@ class GridMap : public Node3D {
|
||||
RID region;
|
||||
Transform3D xform;
|
||||
RID navigation_mesh_debug_instance;
|
||||
uint32_t navigation_layers = 1;
|
||||
};
|
||||
|
||||
struct MultimeshInstance {
|
||||
@@ -255,12 +256,6 @@ public:
|
||||
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;
|
||||
|
||||
void set_navigation_layer_value(int p_layer_number, bool p_value);
|
||||
bool get_navigation_layer_value(int p_layer_number) const;
|
||||
|
||||
void set_mesh_library(const Ref<MeshLibrary> &p_mesh_library);
|
||||
Ref<MeshLibrary> get_mesh_library() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user