Merge pull request #102 from teamfisk/AssaultDash

AirFriction changed to 2.0 to fix the dash ability in the air
This commit is contained in:
William Moberg
2016-02-11 21:46:30 +01:00
+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) {