[gd_scene load_steps=8 format=3 uid="uid://cjtln1brv5njd"]

[ext_resource type="PackedScene" uid="uid://c4j0mypomkaet" path="res://components/RC_Holder.tscn" id="1_bfrhu"]
[ext_resource type="Script" path="res://entities/GridBasedMovable.gd" id="1_fxjar"]
[ext_resource type="PackedScene" uid="uid://daf71uqxwvean" path="res://components/Health.tscn" id="3_fw5o1"]

[sub_resource type="CylinderMesh" id="CylinderMesh_egxx8"]
top_radius = 0.02
bottom_radius = 0.2
height = 0.8

[sub_resource type="BoxShape3D" id="BoxShape3D_8en1p"]
size = Vector3(1.62607, 2.5407, 3.26417)

[sub_resource type="BoxShape3D" id="BoxShape3D_k248p"]
size = Vector3(1.98, 1.6, 1.98)

[sub_resource type="BoxShape3D" id="BoxShape3D_01222"]
size = Vector3(1.95, 3.06882, 1.95)

[node name="GridBasedMovable" type="CharacterBody3D" groups=["movable"]]
collision_layer = 4
collision_mask = 7
script = ExtResource("1_fxjar")

[node name="RotationPoint" type="Marker3D" parent="."]

[node name="RotationVisualizer" type="MeshInstance3D" parent="RotationPoint"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 1.99099, 0)
visible = false
mesh = SubResource("CylinderMesh_egxx8")

[node name="StaticMesh" type="MeshInstance3D" parent="RotationPoint"]

[node name="PlacementProtectionArea" type="Area3D" parent="RotationPoint"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, -1.16393)
collision_layer = 512
collision_mask = 512
monitorable = false

[node name="CollisionShape3D" type="CollisionShape3D" parent="RotationPoint/PlacementProtectionArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0222293, 0.218659)
shape = SubResource("BoxShape3D_8en1p")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
shape = SubResource("BoxShape3D_k248p")

[node name="Timer" type="Timer" parent="."]
one_shot = true

[node name="DetectionArea" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
collision_layer = 4
collision_mask = 7

[node name="CollisionShape3D" type="CollisionShape3D" parent="DetectionArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0222293, 0)
shape = SubResource("BoxShape3D_01222")

[node name="RC_Holder" parent="." instance=ExtResource("1_bfrhu")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.8, 0)

[node name="Health" parent="." instance=ExtResource("3_fw5o1")]

[node name="SpeedModResetTimer" type="Timer" parent="."]
one_shot = true

[connection signal="timeout" from="SpeedModResetTimer" to="." method="_on_speed_mod_reset_timer_timeout"]
