From 0fe0cc5829de915cf105ac4ec3ed4f5440efbfef Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 9 Mar 2026 12:39:16 +0300 Subject: [PATCH] fix: sensors list not clearing --- src/objects/Entities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/objects/Entities.cpp b/src/objects/Entities.cpp index 17b5acd83..0ce9a05f3 100644 --- a/src/objects/Entities.cpp +++ b/src/objects/Entities.cpp @@ -287,6 +287,7 @@ void Entities::preparePhysics(float delta) { auto parts = sensorsTickClock.getParts(); auto& sensors = physics.getSensorsWriteable(); + sensors.clear(); auto view = registry->view(); for (auto [entity, eid, transform, rigidbody] : view.each()) { @@ -339,7 +340,7 @@ void Entities::updatePhysics(float delta) { hitbox.scale = transform.size; if (util::is_nan_or_inf(hitbox.position)) { logger.error() - << "something bad happened in physics engine (entity " + << "physics simulation produced nan or inf (entity " << eid.def.name << "#" << eid.uid << ")"; hitbox.position = transform.pos; } else {