[gd_scene load_steps=12 format=3 uid="uid://babgqvkugifk1"]

[ext_resource type="Script" uid="uid://du135dtrpwm7o" path="res://boat/WalkableBoat.gd" id="1_ml88t"]
[ext_resource type="PackedScene" uid="uid://bcdjvsj0la72h" path="res://boat/source/untitled.fbx" id="2_enlnh"]
[ext_resource type="Script" uid="uid://dliyvpt05xo5u" path="res://boat/BuyancyNode.gd" id="3_ml88t"]

[sub_resource type="GDScript" id="GDScript_enlnh"]
resource_name = "NoRotation"
script/source = "extends Node3D


func _process(_delta):
	global_rotation = $\"../..\".cam_rotation
"

[sub_resource type="Curve" id="Curve_enlnh"]
_limits = [0.0, 10.0, 0.0, 5.0]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(2.83988, 10), 0.299357, 0.0, 0, 0]
point_count = 2

[sub_resource type="CurveTexture" id="CurveTexture_ml88t"]
curve = SubResource("Curve_enlnh")

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_enlnh"]
lifetime_randomness = 0.14
emission_shape = 1
emission_sphere_radius = 2.42
angle_min = -63.4
angle_max = 360.0
inherit_velocity_ratio = 1.384
spread = 21.0
initial_velocity_max = 1.0
angular_velocity_min = -144.39
angular_velocity_max = 40.97
gravity = Vector3(0, 0.7, 0)
scale_min = 0.5
scale_curve = SubResource("CurveTexture_ml88t")
scale_over_velocity_max = 5.0
color = Color(1, 1, 1, 0.219608)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ml88t"]
transparency = 1
blend_mode = 1
depth_draw_mode = 1
diffuse_mode = 3
specular_mode = 2
disable_ambient_light = true
disable_fog = true
heightmap_scale = 9.055
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
point_size = 8.0

[sub_resource type="SphereMesh" id="SphereMesh_ml88t"]
material = SubResource("StandardMaterial3D_ml88t")
radius = 0.08
height = 0.15
radial_segments = 4
rings = 2

[sub_resource type="SphereMesh" id="SphereMesh_enlnh"]
radius = 0.1
height = 0.2

[sub_resource type="BoxShape3D" id="BoxShape3D_enlnh"]
size = Vector3(1.5252, 0.507935, 1)

[node name="Boat" type="RigidBody3D"]
mass = 50.0
script = ExtResource("1_ml88t")
float_force = 30.0
water_drag = 0.01
max_thrust_force = 2000.0
max_steering = 250.0

[node name="Model" parent="." instance=ExtResource("2_enlnh")]
transform = Transform3D(-0.1, 0, -1.50996e-08, 0, 0.1, 0, 1.50996e-08, 0, -0.1, 0, 0.260904, 0)

[node name="CamRoot" type="Node3D" parent="Model"]
transform = Transform3D(-10, 0, 1.50996e-06, 0, 10, 0, -1.50996e-06, 0, -10, 0, 0, 0)
script = SubResource("GDScript_enlnh")

[node name="SpringArm3D" type="SpringArm3D" parent="Model/CamRoot"]
transform = Transform3D(1, 0, 0, 0, 0.893285, 0.449491, 0, -0.449491, 0.893285, 0, 0.350159, 0)
spring_length = 3.5

[node name="Camera3D" type="Camera3D" parent="Model/CamRoot/SpringArm3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.107117, 0.323316, 2.70191)

[node name="PuffFX" type="GPUParticles3D" parent="Model"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.92513, 10.9874, -0.18139)
cast_shadow = 0
amount = 64
lifetime = 15.0
interp_to_end = 0.01
speed_scale = 0.8
randomness = 0.4
visibility_aabb = AABB(-4, -2.58, -6.945, 13.755, 23.63, 16.17)
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_enlnh")
draw_pass_1 = SubResource("SphereMesh_ml88t")

[node name="ProbeContainer" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.465993, 0)

[node name="Cale3" type="Marker3D" parent="ProbeContainer"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.719583, 0, -0.00873816)
script = ExtResource("3_ml88t")

[node name="MeshInstance3D3" type="MeshInstance3D" parent="ProbeContainer/Cale3"]
mesh = SubResource("SphereMesh_enlnh")
skeleton = NodePath("")

[node name="Cale5" type="Marker3D" parent="ProbeContainer"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.783989, 0, -0.0544244)

[node name="MeshInstance3D4" type="MeshInstance3D" parent="ProbeContainer/Cale5"]
mesh = SubResource("SphereMesh_enlnh")
skeleton = NodePath("")

[node name="Cale4" type="Marker3D" parent="ProbeContainer"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0411369, 0, 0.481184)

[node name="MeshInstance3D5" type="MeshInstance3D" parent="ProbeContainer/Cale4"]
mesh = SubResource("SphereMesh_enlnh")
skeleton = NodePath("")

[node name="Cale6" type="Marker3D" parent="ProbeContainer"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0411369, 0, -0.538607)

[node name="MeshInstance3D6" type="MeshInstance3D" parent="ProbeContainer/Cale6"]
mesh = SubResource("SphereMesh_enlnh")
skeleton = NodePath("")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00595701, 0.251318, 0)
shape = SubResource("BoxShape3D_enlnh")
