queue object destruction

This commit is contained in:
2026-04-22 08:13:20 +02:00
parent b211fbf2cd
commit a7a7f9f4e9
6 changed files with 45 additions and 1 deletions

View File

@@ -82,9 +82,15 @@ namespace Game::Object::Components {
// Collision detected
if (!mCollidingWith.contains(other)) {
thisEntity->onCollisionEnter(other);
if (!thisEntity->isActive()) {
return;
}
//other->onCollisionEnter(thisEntity);
} else {
thisEntity->onCollisionStay(other);
if (!thisEntity->isActive()) {
return;
}
//other->onCollisionStay(thisEntity);
}
}