From c50cf78b1450ce1e03a4219dd42f5767a0a34350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Wed, 19 Jun 2024 11:26:37 -0300 Subject: [PATCH] Pong demo: Fix ball velocity decay In moddable pong the project had linear damp and angular damp in zero. To do that only for the ball (not project wide) we can set linear and angular damp mode to "replace" in the RigidBody2D. --- pong_game/ball.tscn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pong_game/ball.tscn b/pong_game/ball.tscn index 2a640af9..600d2de0 100644 --- a/pong_game/ball.tscn +++ b/pong_game/ball.tscn @@ -20,6 +20,8 @@ continuous_cd = 1 max_contacts_reported = 1 contact_monitor = true linear_velocity = Vector2(353.553, 353.553) +linear_damp_mode = 1 +angular_damp_mode = 1 script = ExtResource("1_vdrab") [node name="CollisionShape2D" type="CollisionShape2D" parent="."]