|
[gd_scene load_steps=8 format=3 uid="uid://bsuw6dqwq2e3v"] |
|
|
|
[ext_resource type="PackedScene" uid="uid://bb2je1c8jc1qr" path="res://assets/robot.glb" id="1_n7jto"] |
|
[ext_resource type="Script" path="res://scripts/robot.gd" id="1_vywkg"] |
|
[ext_resource type="Script" path="res://scripts/robot_ai_controller.gd" id="5_sx7mj"] |
|
|
|
[sub_resource type="Animation" id="Animation_2kfmf"] |
|
length = 0.001 |
|
tracks/0/type = "value" |
|
tracks/0/imported = false |
|
tracks/0/enabled = true |
|
tracks/0/path = NodePath("Robot/Arm:rotation") |
|
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("Robot/Arm_001: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)] |
|
} |
|
tracks/2/type = "value" |
|
tracks/2/imported = false |
|
tracks/2/enabled = true |
|
tracks/2/path = NodePath("Robot/Torso:position") |
|
tracks/2/interp = 1 |
|
tracks/2/loop_wrap = true |
|
tracks/2/keys = { |
|
"times": PackedFloat32Array(0), |
|
"transitions": PackedFloat32Array(1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0)] |
|
} |
|
tracks/3/type = "value" |
|
tracks/3/imported = false |
|
tracks/3/enabled = true |
|
tracks/3/path = NodePath("Robot/Head:position") |
|
tracks/3/interp = 1 |
|
tracks/3/loop_wrap = true |
|
tracks/3/keys = { |
|
"times": PackedFloat32Array(0), |
|
"transitions": PackedFloat32Array(1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0)] |
|
} |
|
tracks/4/type = "value" |
|
tracks/4/imported = false |
|
tracks/4/enabled = true |
|
tracks/4/path = NodePath("Robot/Head:rotation") |
|
tracks/4/interp = 1 |
|
tracks/4/loop_wrap = true |
|
tracks/4/keys = { |
|
"times": PackedFloat32Array(0), |
|
"transitions": PackedFloat32Array(1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0)] |
|
} |
|
|
|
[sub_resource type="Animation" id="Animation_ly00x"] |
|
resource_name = "idle" |
|
length = 4.0 |
|
loop_mode = 1 |
|
tracks/0/type = "value" |
|
tracks/0/imported = false |
|
tracks/0/enabled = true |
|
tracks/0/path = NodePath("Robot/Arm:rotation") |
|
tracks/0/interp = 2 |
|
tracks/0/loop_wrap = true |
|
tracks/0/keys = { |
|
"times": PackedFloat32Array(0, 2), |
|
"transitions": PackedFloat32Array(1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0.349066, 0, 0.0610865)] |
|
} |
|
tracks/1/type = "value" |
|
tracks/1/imported = false |
|
tracks/1/enabled = true |
|
tracks/1/path = NodePath("Robot/Arm_001:rotation") |
|
tracks/1/interp = 2 |
|
tracks/1/loop_wrap = true |
|
tracks/1/keys = { |
|
"times": PackedFloat32Array(0, 2), |
|
"transitions": PackedFloat32Array(1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(-0.349066, 0, -0.148353)] |
|
} |
|
tracks/2/type = "value" |
|
tracks/2/imported = false |
|
tracks/2/enabled = true |
|
tracks/2/path = NodePath("Robot/Head:rotation") |
|
tracks/2/interp = 2 |
|
tracks/2/loop_wrap = true |
|
tracks/2/keys = { |
|
"times": PackedFloat32Array(0, 1, 2, 3), |
|
"transitions": PackedFloat32Array(1, 1, 1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0, 0.162316, 0.0488692), Vector3(0, 0, 0), Vector3(0.139626, -0.178024, 0.0226893)] |
|
} |
|
|
|
[sub_resource type="Animation" id="Animation_6jb0l"] |
|
resource_name = "idle" |
|
loop_mode = 1 |
|
tracks/0/type = "value" |
|
tracks/0/imported = false |
|
tracks/0/enabled = true |
|
tracks/0/path = NodePath("Robot/Arm:rotation") |
|
tracks/0/interp = 2 |
|
tracks/0/loop_wrap = true |
|
tracks/0/keys = { |
|
"times": PackedFloat32Array(0, 0.5), |
|
"transitions": PackedFloat32Array(1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0, -0.174533, 0)] |
|
} |
|
tracks/1/type = "value" |
|
tracks/1/imported = false |
|
tracks/1/enabled = true |
|
tracks/1/path = NodePath("Robot/Arm_001:rotation") |
|
tracks/1/interp = 2 |
|
tracks/1/loop_wrap = true |
|
tracks/1/keys = { |
|
"times": PackedFloat32Array(0, 0.5), |
|
"transitions": PackedFloat32Array(1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0, 0.174533, 0)] |
|
} |
|
tracks/2/type = "value" |
|
tracks/2/imported = false |
|
tracks/2/enabled = true |
|
tracks/2/path = NodePath("Robot/Torso:position") |
|
tracks/2/interp = 2 |
|
tracks/2/loop_wrap = true |
|
tracks/2/keys = { |
|
"times": PackedFloat32Array(0, 0.25, 0.5), |
|
"transitions": PackedFloat32Array(1, 1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0, -0.01, 0), Vector3(0, 0, 0)] |
|
} |
|
tracks/3/type = "value" |
|
tracks/3/imported = false |
|
tracks/3/enabled = true |
|
tracks/3/path = NodePath("Robot/Head:position") |
|
tracks/3/interp = 1 |
|
tracks/3/loop_wrap = true |
|
tracks/3/keys = { |
|
"times": PackedFloat32Array(0, 0.5), |
|
"transitions": PackedFloat32Array(1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(0, -0.02, 0)] |
|
} |
|
tracks/4/type = "value" |
|
tracks/4/imported = false |
|
tracks/4/enabled = true |
|
tracks/4/path = NodePath("Robot/Head:rotation") |
|
tracks/4/interp = 1 |
|
tracks/4/loop_wrap = true |
|
tracks/4/keys = { |
|
"times": PackedFloat32Array(0, 0.25, 0.5), |
|
"transitions": PackedFloat32Array(1, 1, 1), |
|
"update": 0, |
|
"values": [Vector3(0, 0, 0), Vector3(-0.0349066, 0, 0), Vector3(0, 0, 0)] |
|
} |
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_g7kmm"] |
|
_data = { |
|
"RESET": SubResource("Animation_2kfmf"), |
|
"idle": SubResource("Animation_ly00x"), |
|
"walking": SubResource("Animation_6jb0l") |
|
} |
|
|
|
[node name="Robot" type="Node3D" groups=["resetable"]] |
|
script = ExtResource("1_vywkg") |
|
metadata/_edit_lock_ = true |
|
|
|
[node name="AIController3D" type="Node3D" parent="."] |
|
script = ExtResource("5_sx7mj") |
|
reset_after = 40 |
|
|
|
[node name="robot" parent="." instance=ExtResource("1_n7jto")] |
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, -0.1, 0) |
|
|
|
[node name="Robot" parent="robot" index="0"] |
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0) |
|
|
|
[node name="Arm_001" parent="robot/Robot" index="1"] |
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00394951, 0, -0.18) |
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="robot"] |
|
libraries = { |
|
"": SubResource("AnimationLibrary_g7kmm") |
|
} |
|
autoplay = "idle" |
|
speed_scale = 16.0 |
|
|
|
[editable path="robot"] |
|
|