airFriction changed to 2.0 to fix the dash ability in the air

This commit is contained in:
verysecrethero
2016-02-11 21:42:29 +01:00
parent 22e35489d7
commit 4a17e3c8f3
+2 -1
View File
@@ -233,7 +233,8 @@ void PlayerMovementSystem::updateVelocity(double dt)
float speed = glm::length(velocity);
static float groundFriction = 7.f;
ImGui::InputFloat("groundFriction", &groundFriction);
static float airFriction = 0.f;
static float airFriction = 2.f;
ImGui::InputFloat("airFriction", &airFriction);
float friction = isOnGround ? groundFriction : airFriction;
if (speed > 0) {