From 02f3e283de7e5769c4dd17e9a522adc51542c4c0 Mon Sep 17 00:00:00 2001 From: siim Date: Thu, 27 Aug 2026 08:30:03 +0300 Subject: [PATCH] landing. don't bounce! --- player.gd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/player.gd b/player.gd index 9d80aaa..4961679 100644 --- a/player.gd +++ b/player.gd @@ -1041,11 +1041,13 @@ func _physics_process(delta: float) -> void: velocity.z = flat_n.z * exit_spd pre_wall_vel = Vector3(velocity.x, 0.0, velocity.z) - # ── Bounce on landing ───────────────────────────────────────────────────── + # ── Landing. Don't bounce ───────────────────────────────────────────────────── if is_on_floor() and not _was_on_floor: - var impact := -_pre_slide_vel_y - if impact > DP.f("bounce_min_impact") and not _slam_pending: - velocity.y = impact * DP.f("bounce_restitution") + velocity.y = 0.0 + #Bouncing landing below + #var impact := -_pre_slide_vel_y + #if impact > DP.f("bounce_min_impact") and not _slam_pending: + #velocity.y = impact * DP.f("bounce_restitution") # ── Slam landing ────────────────────────────────────────────────────────── if _slam_pending and is_on_floor() and not _was_on_floor: