[gd_scene load_steps=8 format=3 uid="uid://bl4b5g1o8ud5y"] [ext_resource type="Script" path="res://Player.gd" id="1_hmkw8"] [ext_resource type="PackedScene" uid="uid://cpgf40og1627r" path="res://art/player.glb" id="1_s5jny"] [sub_resource type="SphereShape3D" id="SphereShape3D_afne8"] radius = 1.0 [sub_resource type="CylinderShape3D" id="CylinderShape3D_chb66"] height = 0.2 radius = 1.3 [sub_resource type="Animation" id="Animation_ja4nm"] resource_name = "float" length = 1.2 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Pivot/Character:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0.3, 0.7, 1.2), "transitions": PackedFloat32Array(2.14126, 1, 1), "update": 0, "values": [Vector3(0, 0, 0), Vector3(0, 0.65, 0), Vector3(0, 0.35, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Pivot/Character:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0.1, 0.5, 1.2), "transitions": PackedFloat32Array(0.42, 1, 1), "update": 0, "values": [Vector3(0, 0, 0), Vector3(0.139626, 0, 0), Vector3(-0.15708, 0, 0)] } [sub_resource type="Animation" id="Animation_g67lg"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Pivot/Character:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Pivot/Character:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_x0i7m"] _data = { "RESET": SubResource("Animation_g67lg"), "float": SubResource("Animation_ja4nm") } [node name="Player" type="CharacterBody3D"] collision_mask = 6 script = ExtResource("1_hmkw8") [node name="Pivot" type="Node3D" parent="."] [node name="Character" parent="Pivot" instance=ExtResource("1_s5jny")] [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.287413, 0) shape = SubResource("SphereShape3D_afne8") [node name="MobDetector" type="Area3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.201618, 0) collision_layer = 0 collision_mask = 2 monitorable = false [node name="CollisionShape3D" type="CollisionShape3D" parent="MobDetector"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.208533, 0) shape = SubResource("CylinderShape3D_chb66") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_x0i7m") } autoplay = "float" [connection signal="body_entered" from="MobDetector" to="." method="_on_mob_detector_body_entered"]