small racing game im working on
Diffstat (limited to 'classes/car.gd')
-rw-r--r--classes/car.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/car.gd b/classes/car.gd
index 9a8b8c0..30fa613 100644
--- a/classes/car.gd
+++ b/classes/car.gd
@@ -46,6 +46,9 @@ func is_not_on_ground() -> bool:
return wheels.any(func(whl: VehicleWheel3D): return !whl.is_in_contact())
func reset() -> void:
+ steering = 0
+ throttle = 0
+ engine_force = 0
brake = 15
set_physics_process(false)