[gd_scene load_steps=5 format=3 uid="uid://c7qwm4k2n8p9r"]

[ext_resource type="Script" path="res://scripts/TowerProjectile.gd" id="1_tower"]

[sub_resource type="BoxMesh" id="BoxMesh_body"]
size = Vector3(1.2, 1.8, 1.2)

[sub_resource type="CylinderMesh" id="CylinderMesh_range"]
top_radius = 1.0
bottom_radius = 1.0
height = 0.05

[sub_resource type="SphereShape3D" id="SphereShape3D_detection"]
radius = 12.0

[node name="TowerProjectile" type="Node3D"]
script = ExtResource("1_tower")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("BoxMesh_body")

[node name="RangeIndicator" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
mesh = SubResource("CylinderMesh_range")
transparency = 0.5

[node name="DetectionArea" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 2

[node name="CollisionShape3D" type="CollisionShape3D" parent="DetectionArea"]
shape = SubResource("SphereShape3D_detection")
