77 lines
4.6 KiB
Plaintext
77 lines
4.6 KiB
Plaintext
[gd_scene format=3 uid="uid://c2hg6hu2y5srb"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://clx701xdwelgx" path="res://core/ai/agents/base/ai_base.tscn" id="1_j8spt"]
|
|
[ext_resource type="Script" uid="uid://d3hy70ec8vqo5" path="res://core/ai/framework/run_animation_state.gd" id="2_acc6o"]
|
|
[ext_resource type="PackedScene" uid="uid://b0xb7kl4rjd66" path="res://core/ai/agents/pig/pig_mannequin.tscn" id="2_qmc2e"]
|
|
[ext_resource type="Script" uid="uid://bngfthvt04ivv" path="res://core/ai/framework/patrol_state.gd" id="3_3n8ak"]
|
|
[ext_resource type="Animation" uid="uid://c4ingpw0co8v2" path="res://core/ai/agents/pig/idle.res" id="3_lvpc5"]
|
|
[ext_resource type="Animation" uid="uid://0563r715lmw1" path="res://core/ai/agents/pig/walking.res" id="4_3f3hl"]
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_lvpc5"]
|
|
_data = {
|
|
&"idle": ExtResource("3_lvpc5"),
|
|
&"walking": ExtResource("4_3f3hl")
|
|
}
|
|
|
|
[node name="AiPig" unique_id=1228675528 node_paths=PackedStringArray("anim_player") instance=ExtResource("1_j8spt")]
|
|
anim_player = NodePath("PigMannequin/AnimationPlayer")
|
|
|
|
[node name="StateMachine" parent="." index="1" unique_id=1286404264 node_paths=PackedStringArray("initial_state")]
|
|
initial_state = NodePath("IdleState")
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" index="0" unique_id=403305255]
|
|
script = ExtResource("2_acc6o")
|
|
state_id = &"idle"
|
|
next_state_id = &"patrol"
|
|
animation_name = "custom/idle"
|
|
|
|
[node name="PatrolState" type="Node" parent="StateMachine" index="1" unique_id=1237150984]
|
|
script = ExtResource("3_3n8ak")
|
|
state_id = &"patrol"
|
|
next_state_id = &"idle"
|
|
animation_name = "custom/walking"
|
|
exit_on_action_finished = true
|
|
|
|
[node name="PigMannequin" parent="." index="3" unique_id=926755470 instance=ExtResource("2_qmc2e")]
|
|
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.9, 0)
|
|
|
|
[node name="Skeleton3D" parent="PigMannequin/Armature" parent_id_path=PackedInt32Array(926755470, 695496535) index="0" unique_id=725647261]
|
|
bones/1/rotation = Quaternion(0.7071068, -7.052583e-07, -7.052583e-07, 0.7071067)
|
|
bones/3/position = Vector3(5.37765e-05, 0.017809996, -0.007695386)
|
|
bones/3/rotation = Quaternion(-0.027121998, 0, 0, 0.99963224)
|
|
bones/4/position = Vector3(-0.004269575, -0.0009057691, 0.018837402)
|
|
bones/4/rotation = Quaternion(-0.20850496, 0.20850474, 0.675667, 0.6756669)
|
|
bones/5/rotation = Quaternion(0.70767504, -0.7007484, -0.04928623, 0.07562217)
|
|
bones/6/rotation = Quaternion(0.5074964, -0.016355418, 0.009635334, 0.86144483)
|
|
bones/8/position = Vector3(-0.004269574, 0.0008725248, -0.02819033)
|
|
bones/8/rotation = Quaternion(-0.021000031, 0.020999499, 0.7067949, 0.7067949)
|
|
bones/9/rotation = Quaternion(0.6762797, -0.7030302, 0.13760945, -0.17163305)
|
|
bones/10/rotation = Quaternion(-0.76131815, 0.012544005, 0.014735432, 0.64808965)
|
|
bones/12/position = Vector3(0.0036532492, -0.0009057691, 0.018837402)
|
|
bones/12/rotation = Quaternion(0.67572093, 0.6757209, -0.20832984, 0.20832963)
|
|
bones/13/rotation = Quaternion(-0.025831472, -0.099082425, 0.70891863, 0.6978179)
|
|
bones/14/rotation = Quaternion(0.50689334, 0.045050938, -0.026540417, 0.8604216)
|
|
bones/16/position = Vector3(0.0036521717, 0.0008013838, -0.028183708)
|
|
bones/16/rotation = Quaternion(0.7068031, 0.7068031, -0.020723455, 0.020722982)
|
|
bones/17/rotation = Quaternion(0.1443776, 0.16487122, 0.6747477, 0.7047611)
|
|
bones/18/rotation = Quaternion(-0.7649948, -0.0061196624, -0.0072699804, 0.64396644)
|
|
bones/20/position = Vector3(-0.00042349403, 0.0063493187, -0.030968314)
|
|
bones/20/rotation = Quaternion(0.60138106, 0.012805484, 0.0019118772, 0.79885745)
|
|
bones/22/position = Vector3(-0.0002038494, 0.0041766805, 0.0044565103)
|
|
bones/22/rotation = Quaternion(0.0076635648, 0.7548352, 0.6556045, -0.018651871)
|
|
bones/23/rotation = Quaternion(0.065689825, -0.010677165, -0.019551655, 0.99759144)
|
|
bones/24/rotation = Quaternion(-0.24106143, -0.2388839, 0.03569213, 0.9399734)
|
|
bones/26/position = Vector3(-0.00032282702, 0.010153349, -0.021613695)
|
|
bones/26/rotation = Quaternion(3.6196245e-06, 0.6452338, 0.7639852, 3.2175833e-06)
|
|
bones/27/rotation = Quaternion(0.0455184, 0.00040800165, -0.025042463, 0.99864954)
|
|
bones/29/position = Vector3(-0.01117923, 0.0010000349, -0.03163386)
|
|
bones/29/rotation = Quaternion(0.7071068, -6.178108e-07, -6.178107e-07, 0.7071067)
|
|
bones/31/rotation = Quaternion(0.7071068, -1.0424332e-06, -1.0424329e-06, 0.7071067)
|
|
bones/33/position = Vector3(0.010670463, 0.0010000349, -0.03166372)
|
|
bones/33/rotation = Quaternion(0.70755845, -7.1388774e-07, -1.0355643e-06, 0.7066547)
|
|
|
|
[node name="AnimationPlayer" parent="PigMannequin" index="1" unique_id=904091745]
|
|
libraries/custom = SubResource("AnimationLibrary_lvpc5")
|
|
|
|
[editable path="PigMannequin"]
|