소스 검색

:wrench: Enable the handbrake by default

Initialize the jeep with handbrake set.
DricomDragon 1 년 전
부모
커밋
846cfe5f84
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      godot/component/entity/vehicles/jeep/jeep.gd

+ 4 - 0
godot/component/entity/vehicles/jeep/jeep.gd

@@ -6,6 +6,10 @@ extends SeatedVehicle
 @export var max_steering: float = PI / 6.0 # degrees
 
 
+func _ready() -> void:
+	hand_brake(true)
+
+
 func steer(ratio: float) -> void:
 	set_steering(ratio * max_steering)