[gd_scene load_steps=5 format=3 uid="uid://b440i2oidk5sp"] [ext_resource type="Script" path="res://scripts/movement.gd" id="1_uru11"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2l8cp"] [sub_resource type="CapsuleMesh" id="CapsuleMesh_fhldf"] [sub_resource type="BoxShape3D" id="BoxShape3D_e4age"] size = Vector3(0.5, 1, 0.75) [node name="player" type="CharacterBody3D"] script = ExtResource("1_uru11") [node name="in_bag" type="ColorRect" parent="."] visible = false anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 1) [node name="collision" type="CollisionShape3D" parent="."] shape = SubResource("CapsuleShape3D_2l8cp") [node name="bean" type="MeshInstance3D" parent="."] mesh = SubResource("CapsuleMesh_fhldf") [node name="cam_y" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0) [node name="Camera3D" type="Camera3D" parent="cam_y"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 8) [node name="detect_hit" type="Area3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.25, -1.5) [node name="CollisionShape3D" type="CollisionShape3D" parent="detect_hit"] shape = SubResource("BoxShape3D_e4age") disabled = true [node name="hammer_bag" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.25, -0.75) visible = false size = Vector3(0.25, 0.25, 1) [node name="CSGBox3D" type="CSGBox3D" parent="hammer_bag"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.75) size = Vector3(0.5, 1, 0.75) [node name="CSGCylinder3D" type="CSGCylinder3D" parent="hammer_bag"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, -0.25, 1.75) height = 1.0 [node name="CSGSphere3D" type="CSGSphere3D" parent="hammer_bag/CSGCylinder3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) visible = false radius = 0.375 [node name="time_in_bag" type="Timer" parent="."] wait_time = 30.0 one_shot = true [connection signal="body_entered" from="detect_hit" to="." method="_on_detect_hit_body_entered"] [connection signal="timeout" from="time_in_bag" to="." method="_on_time_in_bag_timeout"]