220 lines
12 KiB
Text
220 lines
12 KiB
Text
[gd_scene load_steps=17 format=3 uid="uid://cersx8w4ps2sr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cyfbte21rykqr" path="res://scenes/player_mesh.tscn" id="2_0u3o5"]
|
|
[ext_resource type="Script" path="res://src/player.ts" id="2_pdrhn"]
|
|
[ext_resource type="Script" path="res://src/player_animation.ts" id="3_26yay"]
|
|
[ext_resource type="Script" path="res://src/player_input.ts" id="3_x6527"]
|
|
[ext_resource type="Script" path="res://src/interactor.ts" id="5_uk7c1"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1kx10"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vilbe"]
|
|
animation = &"Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_d7cro"]
|
|
animation = &"SlowRun"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_w5ck1"]
|
|
animation = &"Walking"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_twhp3"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_p6dv3"]
|
|
xfade_time = 0.25
|
|
reset = false
|
|
switch_mode = 1
|
|
advance_mode = 2
|
|
advance_expression = "velocity"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xh0w6"]
|
|
xfade_time = 0.25
|
|
reset = false
|
|
switch_mode = 1
|
|
advance_mode = 2
|
|
advance_expression = "is_running()"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vse2m"]
|
|
xfade_time = 0.25
|
|
reset = false
|
|
switch_mode = 1
|
|
advance_mode = 2
|
|
advance_expression = "not is_running()"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_yh7m2"]
|
|
xfade_time = 0.25
|
|
reset = false
|
|
switch_mode = 1
|
|
advance_mode = 2
|
|
advance_expression = "not velocity"
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_8s3qg"]
|
|
states/Idle/node = SubResource("AnimationNodeAnimation_vilbe")
|
|
states/Idle/position = Vector2(311, 100)
|
|
states/SlowRun/node = SubResource("AnimationNodeAnimation_d7cro")
|
|
states/SlowRun/position = Vector2(572, 100)
|
|
states/Walking/node = SubResource("AnimationNodeAnimation_w5ck1")
|
|
states/Walking/position = Vector2(434, 100)
|
|
transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_twhp3"), "Idle", "Walking", SubResource("AnimationNodeStateMachineTransition_p6dv3"), "Walking", "SlowRun", SubResource("AnimationNodeStateMachineTransition_xh0w6"), "SlowRun", "Walking", SubResource("AnimationNodeStateMachineTransition_vse2m"), "Walking", "Idle", SubResource("AnimationNodeStateMachineTransition_yh7m2")]
|
|
graph_offset = Vector2(155, -1)
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_64co4"]
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
script = ExtResource("2_pdrhn")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1.25, 0, 0, 0, 1.25, 0, 0, 0, 1.25, 0, 1.25, 0)
|
|
shape = SubResource("CapsuleShape3D_1kx10")
|
|
|
|
[node name="Mesh" parent="." instance=ExtResource("2_0u3o5")]
|
|
|
|
[node name="Skeleton3D" parent="Mesh/Armature" index="0"]
|
|
bones/0/position = Vector3(0.00289948, 100.861, 1.26735)
|
|
bones/0/rotation = Quaternion(-0.0244499, -0.0264677, -0.0879678, 0.995471)
|
|
bones/1/position = Vector3(-1.08778e-06, 8.00974e-08, -5.45755e-07)
|
|
bones/2/rotation = Quaternion(-0.109938, -0.0139449, 0.0898347, 0.989772)
|
|
bones/3/position = Vector3(1.2666e-07, 1.38208e-06, 4.63426e-06)
|
|
bones/4/rotation = Quaternion(0.018758, -0.00338616, 0.0225337, 0.999564)
|
|
bones/5/position = Vector3(-8.19564e-07, -1.46851e-05, 4.30644e-06)
|
|
bones/6/rotation = Quaternion(0.0319564, -0.00485405, 0.0217667, 0.99924)
|
|
bones/7/position = Vector3(3.57632e-07, -2.42144e-05, -3.53158e-06)
|
|
bones/8/rotation = Quaternion(-0.580392, 0.491768, -0.548909, -0.346422)
|
|
bones/9/position = Vector3(1.93715e-07, -8.76188e-06, -1.82156e-05)
|
|
bones/10/position = Vector3(-2.22259e-06, 10.8382, 6.657e-05)
|
|
bones/10/rotation = Quaternion(0.45809, -0.121747, -0.0824416, 0.876661)
|
|
bones/11/position = Vector3(1.66958e-06, -2.30764e-05, 5.90135e-07)
|
|
bones/12/rotation = Quaternion(8.23363e-08, -4.68609e-08, -0.245739, 0.969336)
|
|
bones/13/position = Vector3(7.10815e-06, 2.49848e-06, -3.67706e-07)
|
|
bones/14/position = Vector3(1.00884e-05, 28.3289, 1.42043e-06)
|
|
bones/14/rotation = Quaternion(0.014645, -0.137758, -0.00643952, 0.990337)
|
|
bones/15/position = Vector3(1.43223e-06, -9.47448e-06, -3.04991e-06)
|
|
bones/16/rotation = Quaternion(0.160255, 0.000143802, 0.0186451, 0.9869)
|
|
bones/17/position = Vector3(2.78027e-07, -1.63051e-05, 2.7709e-07)
|
|
bones/18/position = Vector3(-7.17311e-07, 3.6, -4.46059e-05)
|
|
bones/18/rotation = Quaternion(0.155034, -1.66765e-07, 0.0188948, 0.987729)
|
|
bones/19/position = Vector3(-1.09796e-06, -1.6639e-05, -1.30592e-05)
|
|
bones/20/rotation = Quaternion(0.220887, 2.16033e-08, 0.0269202, 0.974928)
|
|
bones/21/position = Vector3(-3.42208e-06, -3.57069e-06, -7.88492e-06)
|
|
bones/22/position = Vector3(-2.66578e-06, 2.11579, -6.80612e-06)
|
|
bones/23/position = Vector3(1.99676e-06, 2.3176e-06, 1.13522e-06)
|
|
bones/24/position = Vector3(-2.81929e-05, 9.5325, 4.46934e-05)
|
|
bones/24/rotation = Quaternion(0.14289, 0.00156384, 0.00648316, 0.989716)
|
|
bones/25/position = Vector3(-2.64221e-06, 1.33002e-05, 9.27813e-06)
|
|
bones/26/position = Vector3(-3.12982e-06, 3.70001, -1.88553e-05)
|
|
bones/26/rotation = Quaternion(0.156567, -1.04364e-07, 0.0190816, 0.987483)
|
|
bones/27/position = Vector3(4.8121e-06, -1.06792e-05, -1.50226e-05)
|
|
bones/28/position = Vector3(3.86115e-06, 2.95001, -1.38305e-05)
|
|
bones/28/rotation = Quaternion(0.271732, 0.0239403, 0.0400047, 0.961243)
|
|
bones/31/position = Vector3(1.86637e-06, 5.9802e-06, -1.467e-05)
|
|
bones/32/rotation = Quaternion(0.203925, 0.00114676, 0.0193327, 0.978795)
|
|
bones/33/position = Vector3(-2.25109e-06, -9.16777e-06, 1.35742e-05)
|
|
bones/34/position = Vector3(-1.61634e-06, 3.37927, -2.16157e-06)
|
|
bones/34/rotation = Quaternion(0.123071, -4.23026e-08, 0.0149991, 0.992285)
|
|
bones/36/position = Vector3(-1.34902e-06, 2.88968, 1.45266e-05)
|
|
bones/36/rotation = Quaternion(0.193011, 0.101139, 0.0441025, 0.974973)
|
|
bones/37/position = Vector3(7.45909e-07, -8.48482e-06, 1.51202e-05)
|
|
bones/38/position = Vector3(-7.0702e-07, 2.63882, -1.46823e-05)
|
|
bones/39/position = Vector3(-4.24683e-07, -3.16713e-06, -1.23643e-05)
|
|
bones/40/position = Vector3(2.25983, 9.10828, 0.517866)
|
|
bones/40/rotation = Quaternion(0.208794, -0.00164783, 0.0331266, 0.977397)
|
|
bones/41/position = Vector3(5.8333e-07, 6.3235e-07, 1.57826e-05)
|
|
bones/42/rotation = Quaternion(0.10675, -1.37934e-07, 0.0130101, 0.994201)
|
|
bones/43/position = Vector3(-1.30539e-06, 1.28774e-05, 4.90486e-08)
|
|
bones/44/rotation = Quaternion(0.181155, 2.82432e-08, 0.022078, 0.983207)
|
|
bones/45/position = Vector3(-2.28086e-07, -1.45823e-06, -4.29744e-07)
|
|
bones/48/position = Vector3(2.68185, 2.4648, 1.57399)
|
|
bones/48/rotation = Quaternion(0.123855, 0.0615792, -0.158218, 0.977668)
|
|
bones/49/position = Vector3(-3.57628e-06, -1.16825e-05, 6.73833e-06)
|
|
bones/50/position = Vector3(-7.17277e-06, 4.18897, 1.07578e-06)
|
|
bones/50/rotation = Quaternion(-0.0658568, 0.0352429, 0.20427, 0.976061)
|
|
bones/52/position = Vector3(-8.77766e-06, 3.41628, -4.79003e-06)
|
|
bones/52/rotation = Quaternion(0.020006, -0.00218171, -0.0319489, 0.999287)
|
|
bones/53/position = Vector3(-3.03984e-06, 2.01762e-05, -1.93187e-06)
|
|
bones/56/rotation = Quaternion(0.0426809, 0.00409768, -0.0515628, 0.997749)
|
|
bones/57/position = Vector3(1.19211e-07, -2.28947e-05, -3.36394e-06)
|
|
bones/58/rotation = Quaternion(-0.0950997, -0.0140778, 0.00690302, 0.995344)
|
|
bones/59/position = Vector3(-1.0431e-07, -1.54506e-05, -1.49384e-06)
|
|
bones/61/rotation = Quaternion(0.580092, 0.493797, -0.538984, 0.35938)
|
|
bones/62/position = Vector3(5.96046e-08, -6.10948e-07, -7.88433e-06)
|
|
bones/63/position = Vector3(3.42725e-07, 10.8377, 3.26269e-05)
|
|
bones/63/rotation = Quaternion(0.575548, 0.0681971, 0.0612369, 0.812616)
|
|
bones/64/position = Vector3(2.4772e-06, 1.24322e-06, 3.17702e-06)
|
|
bones/65/position = Vector3(7.81477e-06, 27.8415, 3.26074e-05)
|
|
bones/65/rotation = Quaternion(1.45869e-07, -1.74771e-07, 0.187347, 0.982294)
|
|
bones/66/position = Vector3(-3.25318e-06, -4.67625e-06, -1.50252e-06)
|
|
bones/67/rotation = Quaternion(0.0649669, 0.17139, 0.0446918, 0.982042)
|
|
bones/68/position = Vector3(7.47968e-08, -6.91227e-07, -2.51579e-06)
|
|
bones/69/rotation = Quaternion(0.124716, -0.0706003, 0.12224, 0.982099)
|
|
bones/70/position = Vector3(1.18017e-05, 1.18017e-05, 1.03254e-05)
|
|
bones/71/position = Vector3(-7.12144e-07, 4.18709, 2.40078e-06)
|
|
bones/71/rotation = Quaternion(-0.0113373, 0.00316211, -0.0953233, 0.995377)
|
|
bones/72/position = Vector3(5.48363e-06, -9.44734e-06, -1.48937e-05)
|
|
bones/73/position = Vector3(-6.19066e-06, 3.41839, -3.25305e-05)
|
|
bones/73/rotation = Quaternion(-0.0550551, -0.0920655, -0.0310965, 0.993743)
|
|
bones/74/position = Vector3(3.75509e-06, 1.69277e-05, 9.12723e-07)
|
|
bones/75/position = Vector3(2.59013e-06, 2.5806, 1.43079e-06)
|
|
bones/77/rotation = Quaternion(0.137069, -0.00188298, -0.00277138, 0.990556)
|
|
bones/78/position = Vector3(2.34035e-07, 6.61208e-07, -1.22018e-06)
|
|
bones/79/position = Vector3(-2.66701e-07, 3.7, -4.303e-07)
|
|
bones/79/rotation = Quaternion(0.166772, -2.34506e-07, -0.0201262, 0.98579)
|
|
bones/80/position = Vector3(-3.04282e-06, -2.24161e-06, -1.52532e-05)
|
|
bones/81/rotation = Quaternion(0.22072, -2.87607e-07, -0.0266367, 0.974973)
|
|
bones/84/position = Vector3(-1.56742e-06, -5.37828e-06, 1.60567e-05)
|
|
bones/85/rotation = Quaternion(0.0854835, -0.000807518, -0.000812654, 0.996339)
|
|
bones/86/position = Vector3(-2.09158e-07, 7.10476e-06, -1.37234e-05)
|
|
bones/87/rotation = Quaternion(0.174826, -2.14469e-07, -0.021098, 0.984373)
|
|
bones/88/position = Vector3(-1.44259e-06, -2.81852e-06, -1.08586e-06)
|
|
bones/89/rotation = Quaternion(0.217704, -3.39905e-07, -0.0262725, 0.975661)
|
|
bones/90/position = Vector3(-1.67251e-06, -5.69229e-06, 4.16067e-06)
|
|
bones/92/position = Vector3(-2.07638e-06, -8.50701e-06, 1.83102e-06)
|
|
bones/93/rotation = Quaternion(0.143233, -0.000851651, -0.0113733, 0.989623)
|
|
bones/94/position = Vector3(-1.24702e-06, -4.42364e-06, 5.52884e-07)
|
|
bones/95/rotation = Quaternion(0.17102, -2.88582e-07, -0.0206387, 0.985051)
|
|
bones/96/position = Vector3(-2.19045e-06, -7.68091e-06, -2.55365e-06)
|
|
bones/97/position = Vector3(1.62425e-06, 2.95, 1.38972e-05)
|
|
bones/97/rotation = Quaternion(0.260024, -3.83975e-07, -0.0313798, 0.965092)
|
|
bones/98/position = Vector3(-2.69965e-06, -1.43062e-07, 1.26105e-06)
|
|
bones/99/position = Vector3(-2.845e-05, 2.64431, 1.98053e-06)
|
|
bones/100/position = Vector3(6.57979e-07, -4.74934e-06, 1.44472e-05)
|
|
bones/101/position = Vector3(3.80627, 8.07779, 0.486894)
|
|
bones/101/rotation = Quaternion(0.149406, 0.00473882, -0.0485855, 0.98757)
|
|
bones/102/position = Vector3(-2.33662e-06, 1.08604e-05, 1.6658e-05)
|
|
bones/103/rotation = Quaternion(0.185388, 0.00650348, 0.0129359, 0.982559)
|
|
bones/104/position = Vector3(1.84285e-06, 5.76279e-06, -1.71906e-05)
|
|
bones/105/rotation = Quaternion(0.191951, -2.77327e-07, -0.0231645, 0.981131)
|
|
bones/106/position = Vector3(1.48522e-06, -3.60209e-06, 1.44012e-05)
|
|
bones/107/position = Vector3(4.3816e-06, 2.12554, -2.07618e-05)
|
|
bones/108/position = Vector3(-4.91738e-07, 8.79425e-06, -1.38031e-06)
|
|
bones/109/rotation = Quaternion(-0.0738114, 0.0489804, 0.991878, -0.0912707)
|
|
bones/110/position = Vector3(-1.06222e-06, 3.19319e-05, -1.56533e-06)
|
|
bones/111/rotation = Quaternion(-0.207644, 0.0479112, 0.00270132, 0.977027)
|
|
bones/112/position = Vector3(2.91388e-07, 4.25241e-06, -2.20301e-06)
|
|
bones/113/rotation = Quaternion(0.540425, -0.0295423, -0.00350192, 0.840866)
|
|
bones/115/rotation = Quaternion(0.340084, 3.45659e-05, 1.22099e-05, 0.940395)
|
|
bones/119/rotation = Quaternion(0.0580127, 0.138334, 0.982759, -0.108092)
|
|
bones/120/position = Vector3(-8.23132e-07, -4.34501e-06, -1.59527e-06)
|
|
bones/121/rotation = Quaternion(-0.3299, -0.0711539, 0.0134173, 0.941235)
|
|
bones/122/position = Vector3(-6.62286e-07, 6.482e-06, 2.36121e-07)
|
|
bones/123/rotation = Quaternion(0.582538, -0.0190267, -0.0186471, 0.812367)
|
|
bones/125/rotation = Quaternion(0.323212, 3.84905e-05, 1.41309e-05, 0.946327)
|
|
|
|
[node name="Input" type="Node3D" parent="."]
|
|
script = ExtResource("3_x6527")
|
|
min_range = 0.5
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
root_node = NodePath("../Mesh")
|
|
tree_root = SubResource("AnimationNodeStateMachine_8s3qg")
|
|
advance_expression_base_node = NodePath("..")
|
|
anim_player = NodePath("../Mesh/AnimationPlayer")
|
|
script = ExtResource("3_26yay")
|
|
|
|
[node name="Interactor" type="Area3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 1)
|
|
script = ExtResource("5_uk7c1")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Interactor"]
|
|
shape = SubResource("SphereShape3D_64co4")
|
|
|
|
[editable path="Mesh"]
|