aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-09 16:32:17 +0200
committerLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-09 16:32:17 +0200
commit843bdbd9c2026e5990eff14c7c134ff8d6c6a8c5 (patch)
tree2dd7ac0e742678a4655583fe2992240f5fcdad72
parent198b60c7830dc79a60a48863877405690c4b038e (diff)
download2023-843bdbd9c2026e5990eff14c7c134ff8d6c6a8c5.tar.gz
2023-843bdbd9c2026e5990eff14c7c134ff8d6c6a8c5.tar.bz2
2023-843bdbd9c2026e5990eff14c7c134ff8d6c6a8c5.zip
reset the velocity
-rw-r--r--Scripts/scene_control.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/Scripts/scene_control.gd b/Scripts/scene_control.gd
index c4d42ec..453853c 100644
--- a/Scripts/scene_control.gd
+++ b/Scripts/scene_control.gd
@@ -64,6 +64,7 @@ func reset_level():
car.global_position = start.global_position
car.global_rotation = start.rotation;
+ car.velocity = Vector2.ZERO
current_time = 0.0