Fix GridMap OctantKey cell rasterization

Fixes GridMap OctantKey cell rasterization that had octants at different sizes due to faulty integer division.
This commit is contained in:
smix8
2025-04-12 22:54:51 +02:00
parent 09ea7bc6a3
commit 39db6c1d3c
2 changed files with 31 additions and 8 deletions

View File

@@ -152,6 +152,9 @@ class GridMap : public Node3D {
OctantKey() {}
};
OctantKey get_octant_key_from_index_key(const IndexKey &p_index_key) const;
OctantKey get_octant_key_from_cell_coords(const Vector3i &p_cell_coords) const;
#ifndef PHYSICS_3D_DISABLED
uint32_t collision_layer = 1;
uint32_t collision_mask = 1;