Gate fixed

This commit is contained in:
ViktorLjung
2014-05-30 18:44:53 +02:00
parent a1149394bb
commit aeaadcba0f
4 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ void Systems::TransformSystem::UpdateEntity( double dt, EntityID entity, EntityI
{
auto transform = m_World->GetComponent<Components::Transform>(entity);
glm::vec3 move = m_MoveItems[entity].GoalPosition - transform->Position;
move *= m_MoveItems[entity].Time;
move /= m_MoveItems[entity].Time;
m_MoveItems[entity].Time -= dt;
if(m_MoveItems[entity].Time <= 0)