mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user