diff --git a/Boats/boat.tscn b/Boats/boat.tscn index 4d5950a..8ed0be6 100644 --- a/Boats/boat.tscn +++ b/Boats/boat.tscn @@ -20,7 +20,6 @@ size = Vector3(0.1, 2.5, 0.1) [node name="Boat" type="RigidBody3D"] mass = 50.0 -gravity_scale = 0.3 script = ExtResource("1_q76at") max_thrust_force = 3000.0 max_steering = 20.0 @@ -29,28 +28,28 @@ metadata/_custom_type_script = "uid://cjo6l2ykgvn4e" [node name="BuyancyProbe" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -0.0397125) script = ExtResource("3_dd4jx") -float_strength = 1.0 +float_strength = 2.0 max_float_force = 1500.0 metadata/_custom_type_script = "uid://cnfkxclrq0i0s" [node name="BuyancyProbe2" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0235078, 0, -0.5) script = ExtResource("3_dd4jx") -float_strength = 1.0 +float_strength = 1.5 max_float_force = 1500.0 metadata/_custom_type_script = "uid://cnfkxclrq0i0s" [node name="BuyancyProbe3" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0674343, 0, 0.5) script = ExtResource("3_dd4jx") -float_strength = 1.0 +float_strength = 1.5 max_float_force = 1500.0 metadata/_custom_type_script = "uid://cnfkxclrq0i0s" [node name="BuyancyProbe4" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -0.0214682) script = ExtResource("3_dd4jx") -float_strength = 1.0 +float_strength = 2.0 max_float_force = 1500.0 metadata/_custom_type_script = "uid://cnfkxclrq0i0s" diff --git a/Boats/buyancy_probe.gd b/Boats/buyancy_probe.gd index b36368a..b40bb66 100644 --- a/Boats/buyancy_probe.gd +++ b/Boats/buyancy_probe.gd @@ -12,7 +12,7 @@ var currentdepth:float @export var show_probe :bool = false: set(_value): show_probe = _value - if !show_probe: + if !show_probe && sphere_preview != null: sphere_preview.queue_free() var sphere_preview:MeshInstance3D