[gd_scene load_steps=6 format=3 uid="uid://bh717enfr1oka"] [ext_resource type="Script" path="res://turrettest.gd" id="1_50m0j"] [sub_resource type="BoxMesh" id="BoxMesh_8wa40"] [sub_resource type="SphereMesh" id="SphereMesh_box7w"] height = 0.5 is_hemisphere = true [sub_resource type="CylinderMesh" id="CylinderMesh_4v8x4"] top_radius = 0.1 bottom_radius = 0.1 height = 1.0 [sub_resource type="CapsuleMesh" id="CapsuleMesh_8ecox"] [node name="turrettest" type="Node3D" node_paths=PackedStringArray("target")] script = ExtResource("1_50m0j") target = NodePath("Target") [node name="TurretBase" type="MeshInstance3D" parent="."] mesh = SubResource("BoxMesh_8wa40") skeleton = NodePath("") [node name="YRotator" type="MeshInstance3D" parent="TurretBase"] transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.5, 0) mesh = SubResource("SphereMesh_box7w") [node name="XRotator" type="Node3D" parent="TurretBase/YRotator"] transform = Transform3D(1, 0, 0, 0, 0.984732, -0.174078, 0, 0.174078, 0.984732, 0, 0, 0) [node name="MeshInstance3D" type="MeshInstance3D" parent="TurretBase/YRotator/XRotator"] transform = Transform3D(1, -2.98023e-08, 1.49012e-08, 1.49012e-08, -2.98023e-08, -1, -2.98023e-08, 1, -2.98023e-08, 1.49012e-08, 2.98023e-08, -0.5) mesh = SubResource("CylinderMesh_4v8x4") [node name="Target" type="MeshInstance3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 2, 6) mesh = SubResource("CapsuleMesh_8ecox")