Velocity now updating in transformcomponent

This commit is contained in:
ViktorLjung
2014-05-28 22:09:54 +02:00
parent 651e62ba94
commit fd188fded6
6 changed files with 45 additions and 16 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit
if(!tankSteeringComponent)
return;
auto playerComponent = m_World->GetComponent<Components::Player>(tankSteeringComponent->Player);
auto playerComponent = m_World->GetComponent<Components::Player>(entity);
if (!playerComponent)
return;