63 lines
2.3 KiB
Plaintext
63 lines
2.3 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://c7mtmmke1anxp"]
|
|
|
|
[ext_resource type="Script" path="res://assets/core/ships/test_ship.gd" id="1_yql7r"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_tkeg5"]
|
|
size = Vector3(5, 0.25, 10)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_fs34p"]
|
|
size = Vector3(5, 0.25, 10)
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_oqio3"]
|
|
radius = 1.401
|
|
height = 7.405
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_7jr0u"]
|
|
size = Vector3(5.14063, 6.07324, 10.1924)
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_h3cm2"]
|
|
top_radius = 0.1
|
|
bottom_radius = 0.1
|
|
height = 4.5
|
|
|
|
[node name="TestShip" type="RigidBody3D" node_paths=PackedStringArray("ship_area")]
|
|
gravity_scale = 0.0
|
|
script = ExtResource("1_yql7r")
|
|
ship_area = NodePath("Area3D")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("BoxMesh_tkeg5")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("BoxShape3D_fs34p")
|
|
|
|
[node name="Balloon" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 5.12542, 0)
|
|
mesh = SubResource("CapsuleMesh_oqio3")
|
|
skeleton = NodePath("")
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.99997, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
shape = SubResource("BoxShape3D_7jr0u")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(0.866025, -0.5, 0, 0.5, 0.866025, 0, 0, 0, 1, 1.25913, 1.87582, 2.33493)
|
|
mesh = SubResource("CylinderMesh_h3cm2")
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(0.866025, 0.5, 0, -0.5, 0.866025, 0, 0, 0, 1, -1.2691, 1.87582, 2.33493)
|
|
mesh = SubResource("CylinderMesh_h3cm2")
|
|
|
|
[node name="MeshInstance3D4" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(0.866025, -0.5, 0, 0.5, 0.866025, 0, 0, 0, 1, 1.25913, 1.87582, -2.52429)
|
|
mesh = SubResource("CylinderMesh_h3cm2")
|
|
|
|
[node name="MeshInstance3D5" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(0.866025, 0.5, 0, -0.5, 0.866025, 0, 0, 0, 1, -1.2691, 1.87582, -2.52429)
|
|
mesh = SubResource("CylinderMesh_h3cm2")
|
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
|
[connection signal="body_exited" from="Area3D" to="." method="_on_area_3d_body_exited"]
|