Walking sound logic moved to PlayerMovementSystem and makes use of "wishDirection" to alleviate the problem where m_DistanceMoved were reset when it was not supposed to.

This commit is contained in:
stiffly
2016-02-08 14:23:53 +01:00
parent 3a5c0a2762
commit 8e86cc2123
4 changed files with 53 additions and 29 deletions
-2
View File
@@ -30,8 +30,6 @@ public:
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& cComponent, double dt) override;
virtual void Update(double dt) override;
private:
// The logic for making the sound play when player is moving
void playerStep(double dt);
EntityWrapper m_LocalPlayer = EntityWrapper();
World* m_World = nullptr;