Collision with everything omfg

This commit is contained in:
Adam
2014-03-13 02:56:29 +01:00
parent 41e0c7b07a
commit 76da942fdb
6 changed files with 58 additions and 21 deletions
+7
View File
@@ -60,8 +60,15 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
//---------------------------------------------------------------------
// TOUCHING THIS CODE MIGHT COUSE THE UNIVERSE TO IMPLODE, ALSO DRAGONS
}
auto collision = m_World->GetComponent<Components::Collision>(entity, "Collision");
if(collision->CollidingEntities.size() != 0)
int c = 1; // lol
}
name = m_World->GetProperty<std::string>(entity, "Name");
if (name == "PlayerShip")
{