Debug: red bounding boxes when colliding

This commit is contained in:
2014-03-13 03:29:21 +01:00
parent 85c6a7db0d
commit ad082e89d8
4 changed files with 15 additions and 6 deletions
+3 -2
View File
@@ -61,8 +61,9 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
}
auto collision = m_World->GetComponent<Components::Collision>(entity, "Collision");
if(collision->CollidingEntities.size() != 0)
int c = 1; // lol
if(collision->CollidingEntities.size() > 0) {
// DO STUFF
}
}