WIP:Update boat value

This commit is contained in:
Lucas 2025-03-27 09:29:54 +01:00
parent a87fbd13db
commit 913772ece1
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,6 @@ size = Vector3(0.1, 2.5, 0.1)
[node name="Boat" type="RigidBody3D"] [node name="Boat" type="RigidBody3D"]
mass = 50.0 mass = 50.0
gravity_scale = 0.3
script = ExtResource("1_q76at") script = ExtResource("1_q76at")
max_thrust_force = 3000.0 max_thrust_force = 3000.0
max_steering = 20.0 max_steering = 20.0
@ -29,28 +28,28 @@ metadata/_custom_type_script = "uid://cjo6l2ykgvn4e"
[node name="BuyancyProbe" type="Marker3D" parent="."] [node name="BuyancyProbe" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -0.0397125) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -0.0397125)
script = ExtResource("3_dd4jx") script = ExtResource("3_dd4jx")
float_strength = 1.0 float_strength = 2.0
max_float_force = 1500.0 max_float_force = 1500.0
metadata/_custom_type_script = "uid://cnfkxclrq0i0s" metadata/_custom_type_script = "uid://cnfkxclrq0i0s"
[node name="BuyancyProbe2" type="Marker3D" parent="."] [node name="BuyancyProbe2" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0235078, 0, -0.5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0235078, 0, -0.5)
script = ExtResource("3_dd4jx") script = ExtResource("3_dd4jx")
float_strength = 1.0 float_strength = 1.5
max_float_force = 1500.0 max_float_force = 1500.0
metadata/_custom_type_script = "uid://cnfkxclrq0i0s" metadata/_custom_type_script = "uid://cnfkxclrq0i0s"
[node name="BuyancyProbe3" type="Marker3D" parent="."] [node name="BuyancyProbe3" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0674343, 0, 0.5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0674343, 0, 0.5)
script = ExtResource("3_dd4jx") script = ExtResource("3_dd4jx")
float_strength = 1.0 float_strength = 1.5
max_float_force = 1500.0 max_float_force = 1500.0
metadata/_custom_type_script = "uid://cnfkxclrq0i0s" metadata/_custom_type_script = "uid://cnfkxclrq0i0s"
[node name="BuyancyProbe4" type="Marker3D" parent="."] [node name="BuyancyProbe4" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -0.0214682) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -0.0214682)
script = ExtResource("3_dd4jx") script = ExtResource("3_dd4jx")
float_strength = 1.0 float_strength = 2.0
max_float_force = 1500.0 max_float_force = 1500.0
metadata/_custom_type_script = "uid://cnfkxclrq0i0s" metadata/_custom_type_script = "uid://cnfkxclrq0i0s"

View file

@ -12,7 +12,7 @@ var currentdepth:float
@export var show_probe :bool = false: @export var show_probe :bool = false:
set(_value): set(_value):
show_probe = _value show_probe = _value
if !show_probe: if !show_probe && sphere_preview != null:
sphere_preview.queue_free() sphere_preview.queue_free()
var sphere_preview:MeshInstance3D var sphere_preview:MeshInstance3D