queue object destruction
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user