WIP. Improving player walk logic.

This commit is contained in:
stiffly
2016-02-05 17:21:48 +01:00
parent febbadbd01
commit 454eef8225
5 changed files with 47 additions and 52 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ private:
EventBroker* m_EventBroker = nullptr;
// TODO: WIP Update this
double m_TimeSinceLastFootstep = 0.0;
const double m_PlayerFootstepInterval = 1.0;
double m_DistanceMoved = 0.0;
const float m_PlayerStepLength = 1.0;
glm::vec3 m_LastPosition = glm::vec3();
bool m_LeftFoot = false;
EventRelay<SoundSystem, Events::PlayerSpawned> m_EPlayerSpawned;