Merge remote-tracking branch 'origin/master' into WeaponSystem
# Conflicts: # include/Engine/Core/EPlayerDamage.h # src/Game/Game.cpp # src/Game/Systems/Weapon/WeaponSystem.cpp
This commit is contained in:
@@ -234,7 +234,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