[gd_scene load_steps=15 format=3 uid="uid://dwm6v58p82b57"] [ext_resource type="PackedScene" uid="uid://bhhevwh2jipt7" path="res://fox.glb" id="1_8x0u3"] [ext_resource type="Script" uid="uid://8683t0qihiwq" path="res://fox.gd" id="2_kpck0"] [ext_resource type="Script" uid="uid://cp541kkdti4y" path="res://vole_catcher.gd" id="3_k0xb2"] [sub_resource type="SphereShape3D" id="SphereShape3D_kpck0"] radius = 1.32985 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_8x0u3"] animation = &"Idle" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_kpck0"] animation = &"Pounce" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_k0xb2"] animation = &"Walk" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kpck0"] advance_mode = 2 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rxxu0"] xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_wyljk"] xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_somxj"] xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_pcpmy"] xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_k0xb2"] xfade_time = 0.1 switch_mode = 2 advance_mode = 2 [sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_k0xb2"] states/Idle/node = SubResource("AnimationNodeAnimation_8x0u3") states/Idle/position = Vector2(370, 127) states/Pounce/node = SubResource("AnimationNodeAnimation_kpck0") states/Pounce/position = Vector2(529, 197) states/Walk/node = SubResource("AnimationNodeAnimation_k0xb2") states/Walk/position = Vector2(514, 58) transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_kpck0"), "Idle", "Walk", SubResource("AnimationNodeStateMachineTransition_rxxu0"), "Walk", "Pounce", SubResource("AnimationNodeStateMachineTransition_wyljk"), "Walk", "Idle", SubResource("AnimationNodeStateMachineTransition_somxj"), "Idle", "Pounce", SubResource("AnimationNodeStateMachineTransition_pcpmy"), "Pounce", "Idle", SubResource("AnimationNodeStateMachineTransition_k0xb2")] [node name="fox" instance=ExtResource("1_8x0u3")] script = ExtResource("2_kpck0") [node name="BoneAttachment3D" type="BoneAttachment3D" parent="FoxRig/Skeleton3D" index="1"] transform = Transform3D(1, 0, -8.74228e-08, -8.73917e-08, 0.0266449, -0.999645, 2.32937e-09, 0.999645, 0.0266449, 2.85687e-15, 2.29449, 1.46528) bone_name = "head" bone_idx = 4 [node name="VoleCatcher" type="Area3D" parent="FoxRig/Skeleton3D/BoneAttachment3D" index="0"] unique_name_in_owner = true script = ExtResource("3_k0xb2") [node name="CollisionShape3D" type="CollisionShape3D" parent="FoxRig/Skeleton3D/BoneAttachment3D/VoleCatcher" index="0"] transform = Transform3D(1, 4.44089e-16, -1.43704e-14, 0, 1, 0, -1.45717e-16, -3.72529e-09, 1, -2.30192e-08, 0.620525, -0.210184) shape = SubResource("SphereShape3D_kpck0") [node name="AnimationPlayer" parent="." index="1"] root_motion_track = NodePath("FoxRig/Skeleton3D:root") root_motion_local = false [node name="AnimationTree" type="AnimationTree" parent="." index="2"] unique_name_in_owner = true root_node = NodePath("%AnimationTree/..") root_motion_track = NodePath("FoxRig/Skeleton3D:root") root_motion_local = false tree_root = SubResource("AnimationNodeStateMachine_k0xb2") anim_player = NodePath("../AnimationPlayer") [connection signal="area_entered" from="FoxRig/Skeleton3D/BoneAttachment3D/VoleCatcher" to="FoxRig/Skeleton3D/BoneAttachment3D/VoleCatcher" method="_on_area_entered"] [connection signal="area_exited" from="FoxRig/Skeleton3D/BoneAttachment3D/VoleCatcher" to="FoxRig/Skeleton3D/BoneAttachment3D/VoleCatcher" method="_on_area_exited"]