119 lines
5.6 KiB
Plaintext
119 lines
5.6 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://k11usj2shbtr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bi231xk2sp410" path="res://assets/models/ant.glb" id="1_1u65s"]
|
|
[ext_resource type="Script" path="res://scripts/units/ant_nitwit.gd" id="2_f1bdv"]
|
|
[ext_resource type="Texture2D" uid="uid://dehqm00kiljut" path="res://assets/textures/selection_unit_decal.png" id="3_hxm2m"]
|
|
[ext_resource type="Texture2D" uid="uid://duf132faskeid" path="res://assets/textures/selection_unit_hover_decal.png" id="4_vrkmw"]
|
|
[ext_resource type="PackedScene" uid="uid://fal1ond30jey" path="res://scenes/units/components/gathering.tscn" id="5_j8w6w"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_foq4x"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lxe13"]
|
|
animation = &"walk"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_rro5b"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_foq4x")
|
|
blend_point_0/pos = 0.0
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_lxe13")
|
|
blend_point_1/pos = 1.0
|
|
min_space = 0.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_j3gya"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_2257g"]
|
|
states/locomotion/node = SubResource("AnimationNodeBlendSpace1D_rro5b")
|
|
states/locomotion/position = Vector2(346, 100)
|
|
transitions = ["Start", "locomotion", SubResource("AnimationNodeStateMachineTransition_j3gya")]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_e8dcp"]
|
|
radius = 0.25
|
|
|
|
[node name="AntNitwit" instance=ExtResource("1_1u65s")]
|
|
collision_layer = 4
|
|
collision_mask = 0
|
|
script = ExtResource("2_f1bdv")
|
|
|
|
[node name="Skeleton3D" parent="Armature" index="0"]
|
|
bones/4/rotation = Quaternion(0.587858, -5.43255e-07, -3.94772e-07, 0.808964)
|
|
bones/6/rotation = Quaternion(0.330686, -3.0116e-14, -4.44141e-07, 0.943741)
|
|
bones/9/rotation = Quaternion(0.587858, 5.43255e-07, 3.94772e-07, 0.808964)
|
|
bones/11/rotation = Quaternion(0.330686, 3.0116e-14, 4.44141e-07, 0.943741)
|
|
bones/14/rotation = Quaternion(4.60304e-08, 0.0294697, 0.999566, -5.43234e-07)
|
|
bones/14/scale = Vector3(1, 1, 1)
|
|
bones/15/rotation = Quaternion(4.55913e-08, 0.0294697, 0.999566, -4.34329e-07)
|
|
bones/15/scale = Vector3(1, 1, 1)
|
|
bones/16/rotation = Quaternion(4.55913e-08, 0.0294697, 0.999566, -4.34329e-07)
|
|
bones/16/scale = Vector3(1, 1, 1)
|
|
bones/18/rotation = Quaternion(0.0294712, -6.21995e-15, 4.35675e-07, 0.999566)
|
|
bones/19/rotation = Quaternion(0.0294712, -5.33139e-15, 4.35675e-07, 0.999566)
|
|
bones/20/rotation = Quaternion(0.0294712, -6.21995e-15, 4.35675e-07, 0.999566)
|
|
bones/21/rotation = Quaternion(0.0294712, -6.21995e-15, 4.35675e-07, 0.999566)
|
|
bones/22/rotation = Quaternion(0.0294712, -6.21995e-15, 4.35675e-07, 0.999566)
|
|
bones/23/rotation = Quaternion(0.0294712, -5.33139e-15, 4.35675e-07, 0.999566)
|
|
bones/24/rotation = Quaternion(0.0294712, -6.21995e-15, 4.35675e-07, 0.999566)
|
|
bones/25/rotation = Quaternion(0.0294712, -5.33139e-15, 4.35675e-07, 0.999566)
|
|
bones/26/rotation = Quaternion(-0.221628, 0.221633, -0.671475, 0.671477)
|
|
bones/27/rotation = Quaternion(0.583948, -8.29882e-08, 2.36539e-06, 0.811791)
|
|
bones/27/scale = Vector3(1, 1, 1)
|
|
bones/28/rotation = Quaternion(-0.84146, 6.60837e-08, -6.26108e-06, 0.54032)
|
|
bones/30/rotation = Quaternion(0.583949, -2.24752e-07, 2.46641e-06, 0.811791)
|
|
bones/31/rotation = Quaternion(-0.84146, 1.69298e-07, -6.42962e-06, 0.54032)
|
|
bones/32/scale = Vector3(1, 1, 1)
|
|
bones/34/rotation = Quaternion(-0.841459, 1.31575e-07, -6.3826e-06, 0.540321)
|
|
bones/34/scale = Vector3(1, 1, 1)
|
|
bones/35/rotation = Quaternion(-0.221628, -0.221633, 0.671475, 0.671477)
|
|
bones/36/rotation = Quaternion(0.583948, 8.29882e-08, -2.36539e-06, 0.811791)
|
|
bones/36/scale = Vector3(1, 1, 1)
|
|
bones/37/rotation = Quaternion(-0.84146, -6.60837e-08, 6.26108e-06, 0.54032)
|
|
bones/39/rotation = Quaternion(0.583949, 2.24752e-07, -2.46641e-06, 0.811791)
|
|
bones/40/rotation = Quaternion(-0.84146, -1.69298e-07, 6.42962e-06, 0.54032)
|
|
bones/41/scale = Vector3(1, 1, 1)
|
|
bones/43/rotation = Quaternion(-0.841459, -1.31575e-07, 6.3826e-06, 0.540321)
|
|
bones/43/scale = Vector3(1, 1, 1)
|
|
|
|
[node name="GathererMesh" parent="Armature/Skeleton3D" index="0"]
|
|
visible = false
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
deterministic = true
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
|
|
tree_root = SubResource("AnimationNodeStateMachine_2257g")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
parameters/locomotion/blend_position = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." index="3"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0)
|
|
shape = SubResource("SphereShape3D_e8dcp")
|
|
|
|
[node name="SelectionSprite" type="Sprite3D" parent="." index="4"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0021804, 0.00953716, -0.00236732)
|
|
pixel_size = 0.0055
|
|
axis = 1
|
|
texture = ExtResource("3_hxm2m")
|
|
|
|
[node name="HoverSprite" type="Sprite3D" parent="." index="5"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0021804, 0.00953716, -0.00236732)
|
|
pixel_size = 0.0085
|
|
axis = 1
|
|
texture = ExtResource("4_vrkmw")
|
|
|
|
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." index="6"]
|
|
path_desired_distance = 0.5
|
|
target_desired_distance = 0.5
|
|
path_height_offset = 0.5
|
|
avoidance_enabled = true
|
|
height = 0.5
|
|
radius = 0.25
|
|
neighbor_distance = 10.0
|
|
|
|
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="." index="7"]
|
|
aabb = AABB(-0.5, 0, -0.5, 1, 0.5, 1)
|
|
|
|
[node name="Gathering" parent="." index="8" instance=ExtResource("5_j8w6w")]
|
|
|
|
[node name="UiOrigin" type="Marker3D" parent="." index="9"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.58746, 0)
|