airFriction changed to 2.0 to fix the dash ability in the air
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user