| 219 | } |
| 220 | |
| 221 | void SpatialHash::DrawDebug() const |
| 222 | { |
| 223 | constexpr auto BOX_COLOR = Color(1.0f, 1.0f, 1.0f, 0.5f); |
| 224 | |
| 225 | PrintDebugMessage("SPATIAL HASH DEBUG"); |
| 226 | |
| 227 | PrintDebugMessage("Cells: %d", _cellMap.size()); |
| 228 | for (const auto& [key, cell] : _cellMap) |
| 229 | DrawDebugBox(cell.Aabb, BOX_COLOR); |
| 230 | } |
| 231 | |
| 232 | Vector3i SpatialHash::GetCellKey(const Vector3& pos) const |
| 233 | { |
nothing calls this directly
no test coverage detected