Browse Source

:wrench: Increase engine power

DricomDragon 1 year ago
parent
commit
6570be9518

+ 1 - 0
first3d/component/entity/vehicles/jeep/Jeep.tscn

@@ -20,6 +20,7 @@ collision_mask = 11
 mass = 400.0
 center_of_mass_mode = 1
 script = ExtResource("1_fjw46")
+max_engine_force = 1842.0
 
 [node name="OrangeJeep_noWheel" parent="." instance=ExtResource("1_qgclq")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)

+ 2 - 2
first3d/component/entity/vehicles/jeep/jeep.gd

@@ -1,7 +1,7 @@
 extends VehicleBody3D
 
-@onready var max_engine_force: float = 500
-@onready var max_steering: float = PI / 6.0 # degrees
+@export var max_engine_force: float = 500
+@export var max_steering: float = PI / 6.0 # degrees
 
 var _current_commander: LocalInput = null