Movement/rotation queue fixed and Simon force push

This commit is contained in:
ViktorLjung
2014-05-31 03:52:39 +02:00
parent c489547294
commit a142d368a7
18 changed files with 433 additions and 202 deletions
+4 -2
View File
@@ -121,11 +121,13 @@ void Systems::TriggerSystem::Move( EntityID entity )
Events::Move e;
e.Entity = trigger->Entity;
e.GoalPosition = trigger->GoalPosition;
e.Time = trigger->Time;
e.Speed = trigger->Speed;
e.Queue = false;
EventBroker->Publish(e);
trigger->GoalPosition = transform->Position;
glm::vec3 temp = trigger->GoalPosition;
trigger->GoalPosition = trigger->StartPosition;
trigger->StartPosition = temp;
}