diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-10 23:44:34 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 00:13:19 +0100 |
| commit | 8858725782129203b14b214b57d6bb8a9adff37c (patch) | |
| tree | 203bb49c0d09c40f37dff14b6c12761a56d53262 /editor | |
| parent | c70fcc94727fa21dd5024031610fb98858de4716 (diff) | |
fix wall bounding box
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/draw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index 445c1866..c9f82cdd 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -130,8 +130,10 @@ void app::draw_collision_boxes() const auto* rtree = c.rtree(); rtree->Search(min2f, max2f, [&](object_id data, const rect_type& rect) { [[maybe_unused]] auto x = std::bit_cast<collision_data>(data); +#if 1 if (x.tag == (uint64_t)collision_type::geometry) return true; +#endif Vector2 start(rect.m_min[0], rect.m_min[1]), end(rect.m_max[0], rect.m_max[1]); auto size = (end - start); auto center = Vector3(start + size*.5f, 0.f); |
