Improved collisions with multiple objects in the same frame

This commit is contained in:
viktorljung
2015-10-06 19:41:00 +02:00
parent a2dc76051f
commit 65c01f9b8e
3 changed files with 55 additions and 8 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ void dd::Systems::PhysicsSystem::OnEntityRemoved(EntityID entity)
return;
}
LOG_INFO("Removing entity %i", entity);
//LOG_INFO("Removing entity %i", entity);
it->second->GetWorld()->DestroyBody(it->second);
m_BodiesToEntities.erase(it->second);
m_EntitiesToBodies.erase(entity);