remove bounce after slam
This commit is contained in:
@@ -668,7 +668,7 @@ func _physics_process(delta: float) -> void:
|
||||
# ── Bounce on landing ─────────────────────────────────────────────────────
|
||||
if is_on_floor() and not _was_on_floor:
|
||||
var impact := -_pre_slide_vel_y
|
||||
if impact > DP.f("bounce_min_impact"):
|
||||
if impact > DP.f("bounce_min_impact") and not _slam_pending:
|
||||
velocity.y = impact * DP.f("bounce_restitution")
|
||||
|
||||
# ── Slam landing ──────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user