create AntNitwit class and make them wander

This commit is contained in:
2024-10-06 08:55:57 +10:00
parent 3ad9d2a6ac
commit f6110711fc
5 changed files with 131 additions and 715 deletions

View File

@@ -1,9 +1,10 @@
[gd_scene load_steps=15 format=3 uid="uid://ceru75se7ifkb"]
[gd_scene load_steps=16 format=3 uid="uid://ceru75se7ifkb"]
[ext_resource type="Script" path="res://scripts/main_camera.gd" id="1_gnxhh"]
[ext_resource type="PackedScene" uid="uid://cfixshlmwhpmi" path="res://scenes/units/test_unit.tscn" id="2_4bgm6"]
[ext_resource type="PackedScene" uid="uid://d4c6ujs1ra1ob" path="res://scenes/units/aphid.tscn" id="3_eh22j"]
[ext_resource type="Script" path="res://scripts/selector.gd" id="4_5avpj"]
[ext_resource type="PackedScene" uid="uid://k11usj2shbtr" path="res://scenes/units/ant_nitwit.tscn" id="4_jcvdx"]
[ext_resource type="Texture2D" uid="uid://bgbe5l2woe5b2" path="res://assets/textures/gui/selection_box.png" id="5_g1xtt"]
[sub_resource type="NavigationMesh" id="NavigationMesh_6jq54"]
@@ -99,723 +100,31 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 0)
[node name="TestUnit5" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 0)
[node name="TestUnit6" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 0)
[node name="Aphids" type="Node" parent="Units"]
[node name="TestUnit7" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 0)
[node name="TestUnit8" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 0)
[node name="TestUnit9" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 0)
[node name="TestUnit10" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 0)
[node name="TestUnit11" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.28447)
[node name="TestUnit12" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 1.28447)
[node name="TestUnit13" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 1.28447)
[node name="TestUnit14" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 1.28447)
[node name="TestUnit15" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 1.28447)
[node name="TestUnit16" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 1.28447)
[node name="TestUnit17" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 1.28447)
[node name="TestUnit18" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 1.28447)
[node name="TestUnit19" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 1.28447)
[node name="TestUnit20" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 1.28447)
[node name="TestUnit21" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.60209)
[node name="TestUnit22" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 2.60209)
[node name="TestUnit23" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 2.60209)
[node name="TestUnit24" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 2.60209)
[node name="TestUnit25" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 2.60209)
[node name="TestUnit26" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 2.60209)
[node name="TestUnit27" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 2.60209)
[node name="TestUnit28" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 2.60209)
[node name="TestUnit29" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 2.60209)
[node name="TestUnit30" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 2.60209)
[node name="TestUnit31" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3.90492)
[node name="TestUnit32" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 3.90492)
[node name="TestUnit33" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 3.90492)
[node name="TestUnit34" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 3.90492)
[node name="TestUnit35" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 3.90492)
[node name="TestUnit36" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 3.90492)
[node name="TestUnit37" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 3.90492)
[node name="TestUnit38" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 3.90492)
[node name="TestUnit39" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 3.90492)
[node name="TestUnit40" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 3.90492)
[node name="TestUnit41" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 5.5462)
[node name="TestUnit42" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 5.5462)
[node name="TestUnit43" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 5.5462)
[node name="TestUnit44" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 5.5462)
[node name="TestUnit45" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 5.5462)
[node name="TestUnit46" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 5.5462)
[node name="TestUnit47" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 5.5462)
[node name="TestUnit48" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 5.5462)
[node name="TestUnit49" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 5.5462)
[node name="TestUnit50" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 5.5462)
[node name="TestUnit51" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 7.14466)
[node name="TestUnit52" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 7.14466)
[node name="TestUnit53" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 7.14466)
[node name="TestUnit54" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 7.14466)
[node name="TestUnit55" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 7.14466)
[node name="TestUnit56" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 7.14466)
[node name="TestUnit57" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 7.14466)
[node name="TestUnit58" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 7.14466)
[node name="TestUnit59" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 7.14466)
[node name="TestUnit60" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 7.14466)
[node name="TestUnit61" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 0)
[node name="TestUnit62" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 0)
[node name="TestUnit63" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 0)
[node name="TestUnit64" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 0)
[node name="TestUnit65" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 0)
[node name="TestUnit66" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 0)
[node name="TestUnit67" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 0)
[node name="TestUnit68" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 0)
[node name="TestUnit69" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 0)
[node name="TestUnit70" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 0)
[node name="TestUnit71" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 1.28447)
[node name="TestUnit72" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 1.28447)
[node name="TestUnit73" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 1.28447)
[node name="TestUnit74" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 1.28447)
[node name="TestUnit75" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 1.28447)
[node name="TestUnit76" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 1.28447)
[node name="TestUnit77" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 1.28447)
[node name="TestUnit78" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 1.28447)
[node name="TestUnit79" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 1.28447)
[node name="TestUnit80" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 1.28447)
[node name="TestUnit81" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 2.60209)
[node name="TestUnit82" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 2.60209)
[node name="TestUnit83" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 2.60209)
[node name="TestUnit84" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 2.60209)
[node name="TestUnit85" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 2.60209)
[node name="TestUnit86" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 2.60209)
[node name="TestUnit87" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 2.60209)
[node name="TestUnit88" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 2.60209)
[node name="TestUnit89" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 2.60209)
[node name="TestUnit90" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 2.60209)
[node name="TestUnit91" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 3.90492)
[node name="TestUnit92" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 3.90492)
[node name="TestUnit93" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 3.90492)
[node name="TestUnit94" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 3.90492)
[node name="TestUnit95" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 3.90492)
[node name="TestUnit96" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 3.90492)
[node name="TestUnit97" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 3.90492)
[node name="TestUnit98" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 3.90492)
[node name="TestUnit99" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 3.90492)
[node name="TestUnit100" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 3.90492)
[node name="TestUnit101" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 5.5462)
[node name="TestUnit102" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 5.5462)
[node name="TestUnit103" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 5.5462)
[node name="TestUnit104" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 5.5462)
[node name="TestUnit105" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 5.5462)
[node name="TestUnit106" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 5.5462)
[node name="TestUnit107" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 5.5462)
[node name="TestUnit108" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 5.5462)
[node name="TestUnit109" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 5.5462)
[node name="TestUnit110" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 5.5462)
[node name="TestUnit111" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 7.14466)
[node name="TestUnit112" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 7.14466)
[node name="TestUnit113" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 7.14466)
[node name="TestUnit114" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 7.14466)
[node name="TestUnit115" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 7.14466)
[node name="TestUnit116" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 7.14466)
[node name="TestUnit117" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 7.14466)
[node name="TestUnit118" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 7.14466)
[node name="TestUnit119" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 7.14466)
[node name="TestUnit120" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 7.14466)
[node name="TestUnit121" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 8.83389)
[node name="TestUnit122" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 8.83389)
[node name="TestUnit123" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 8.83389)
[node name="TestUnit124" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 8.83389)
[node name="TestUnit125" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 8.83389)
[node name="TestUnit126" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 8.83389)
[node name="TestUnit127" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 8.83389)
[node name="TestUnit128" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 8.83389)
[node name="TestUnit129" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 8.83389)
[node name="TestUnit130" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 8.83389)
[node name="TestUnit131" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10.1184)
[node name="TestUnit132" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 10.1184)
[node name="TestUnit133" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 10.1184)
[node name="TestUnit134" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 10.1184)
[node name="TestUnit135" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 10.1184)
[node name="TestUnit136" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 10.1184)
[node name="TestUnit137" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 10.1184)
[node name="TestUnit138" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 10.1184)
[node name="TestUnit139" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 10.1184)
[node name="TestUnit140" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 10.1184)
[node name="TestUnit141" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 11.436)
[node name="TestUnit142" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 11.436)
[node name="TestUnit143" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 11.436)
[node name="TestUnit144" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 11.436)
[node name="TestUnit145" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 11.436)
[node name="TestUnit146" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 11.436)
[node name="TestUnit147" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 11.436)
[node name="TestUnit148" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 11.436)
[node name="TestUnit149" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 11.436)
[node name="TestUnit150" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 11.436)
[node name="TestUnit151" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 12.7388)
[node name="TestUnit152" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 12.7388)
[node name="TestUnit153" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 12.7388)
[node name="TestUnit154" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 12.7388)
[node name="TestUnit155" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 12.7388)
[node name="TestUnit156" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 12.7388)
[node name="TestUnit157" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 12.7388)
[node name="TestUnit158" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 12.7388)
[node name="TestUnit159" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 12.7388)
[node name="TestUnit160" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 12.7388)
[node name="TestUnit161" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 14.3801)
[node name="TestUnit162" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 14.3801)
[node name="TestUnit163" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 14.3801)
[node name="TestUnit164" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 14.3801)
[node name="TestUnit165" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 14.3801)
[node name="TestUnit166" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 14.3801)
[node name="TestUnit167" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 14.3801)
[node name="TestUnit168" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 14.3801)
[node name="TestUnit169" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 14.3801)
[node name="TestUnit170" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 14.3801)
[node name="TestUnit171" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 15.9786)
[node name="TestUnit172" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.96245, 0, 15.9786)
[node name="TestUnit173" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.97171, 0, 15.9786)
[node name="TestUnit174" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80899, 0, 15.9786)
[node name="TestUnit175" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.67063, 0, 15.9786)
[node name="TestUnit176" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55902, 0, 15.9786)
[node name="TestUnit177" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.39631, 0, 15.9786)
[node name="TestUnit178" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.34148, 0, 15.9786)
[node name="TestUnit179" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.27442, 0, 15.9786)
[node name="TestUnit180" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07759, 0, 15.9786)
[node name="TestUnit181" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 8.83389)
[node name="TestUnit182" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 8.83389)
[node name="TestUnit183" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 8.83389)
[node name="TestUnit184" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 8.83389)
[node name="TestUnit185" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 8.83389)
[node name="TestUnit186" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 8.83389)
[node name="TestUnit187" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 8.83389)
[node name="TestUnit188" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 8.83389)
[node name="TestUnit189" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 8.83389)
[node name="TestUnit190" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 8.83389)
[node name="TestUnit191" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 10.1184)
[node name="TestUnit192" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 10.1184)
[node name="TestUnit193" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 10.1184)
[node name="TestUnit194" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 10.1184)
[node name="TestUnit195" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 10.1184)
[node name="TestUnit196" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 10.1184)
[node name="TestUnit197" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 10.1184)
[node name="TestUnit198" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 10.1184)
[node name="TestUnit199" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 10.1184)
[node name="TestUnit200" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 10.1184)
[node name="TestUnit201" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 11.436)
[node name="TestUnit202" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 11.436)
[node name="TestUnit203" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 11.436)
[node name="TestUnit204" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 11.436)
[node name="TestUnit205" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 11.436)
[node name="TestUnit206" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 11.436)
[node name="TestUnit207" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 11.436)
[node name="TestUnit208" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 11.436)
[node name="TestUnit209" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 11.436)
[node name="TestUnit210" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 11.436)
[node name="TestUnit211" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 12.7388)
[node name="TestUnit212" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 12.7388)
[node name="TestUnit213" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 12.7388)
[node name="TestUnit214" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 12.7388)
[node name="TestUnit215" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 12.7388)
[node name="TestUnit216" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 12.7388)
[node name="TestUnit217" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 12.7388)
[node name="TestUnit218" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 12.7388)
[node name="TestUnit219" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 12.7388)
[node name="TestUnit220" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 12.7388)
[node name="TestUnit221" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 14.3801)
[node name="TestUnit222" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 14.3801)
[node name="TestUnit223" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 14.3801)
[node name="TestUnit224" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 14.3801)
[node name="TestUnit225" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 14.3801)
[node name="TestUnit226" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 14.3801)
[node name="TestUnit227" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 14.3801)
[node name="TestUnit228" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 14.3801)
[node name="TestUnit229" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 14.3801)
[node name="TestUnit230" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 14.3801)
[node name="TestUnit231" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48393, 0, 15.9786)
[node name="TestUnit232" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4464, 0, 15.9786)
[node name="TestUnit233" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.4556, 0, 15.9786)
[node name="TestUnit234" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2929, 0, 15.9786)
[node name="TestUnit235" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1546, 0, 15.9786)
[node name="TestUnit236" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.043, 0, 15.9786)
[node name="TestUnit237" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.8802, 0, 15.9786)
[node name="TestUnit238" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8254, 0, 15.9786)
[node name="TestUnit239" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.7584, 0, 15.9786)
[node name="TestUnit240" parent="Units/TestUnits" instance=ExtResource("2_4bgm6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.5615, 0, 15.9786)
[node name="Aphid" parent="Units" instance=ExtResource("3_eh22j")]
[node name="Aphid" parent="Units/Aphids" instance=ExtResource("3_eh22j")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.62044, -2.38419e-07, -1.07353)
[node name="Aphid2" parent="Units" instance=ExtResource("3_eh22j")]
[node name="Aphid2" parent="Units/Aphids" instance=ExtResource("3_eh22j")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.87474, -2.38419e-07, -1.07353)
[node name="Aphid3" parent="Units" instance=ExtResource("3_eh22j")]
[node name="Aphid3" parent="Units/Aphids" instance=ExtResource("3_eh22j")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.19235, -2.38419e-07, -1.07353)
[node name="Aphid4" parent="Units" instance=ExtResource("3_eh22j")]
[node name="Aphid4" parent="Units/Aphids" instance=ExtResource("3_eh22j")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.19235, -2.38419e-07, -2.63002)
[node name="Nitwits" type="Node" parent="Units"]
[node name="AntNitwit" parent="Units/Nitwits" instance=ExtResource("4_jcvdx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.449057, 0, -3.08498)
[node name="AntNitwit2" parent="Units/Nitwits" instance=ExtResource("4_jcvdx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.971017, 0, -3.08498)
[node name="AntNitwit3" parent="Units/Nitwits" instance=ExtResource("4_jcvdx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.39845, 0, -3.08498)
[node name="Selector" type="Node" parent="."]
script = ExtResource("4_5avpj")

View File

@@ -0,0 +1,50 @@
[gd_scene load_steps=7 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"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0iwx2"]
albedo_color = Color(0.344076, 0.344076, 0.344076, 1)
[sub_resource type="SphereShape3D" id="SphereShape3D_e8dcp"]
radius = 0.25
[node name="AntNitwit" instance=ExtResource("1_1u65s")]
collision_mask = 0
script = ExtResource("2_f1bdv")
[node name="ant" parent="." index="0"]
surface_material_override/0 = SubResource("StandardMaterial3D_0iwx2")
[node name="AnimationPlayer" parent="." index="1"]
deterministic = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="." index="2"]
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="3"]
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="4"]
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="5"]
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="6"]
aabb = AABB(-0.5, 0, -0.5, 1, 0.5, 1)

View File

@@ -0,0 +1,38 @@
extends ControlledUnit
class_name AntNitwit
enum AntNitwitState {
WANDERING,
MOVING,
}
var state: AntNitwitState = AntNitwitState.WANDERING
func _ready() -> void:
super._ready()
moving_started.connect(_on_moving_started)
moving_ended.connect(_on_moving_ended)
func _process(delta: float) -> void:
super._process(delta)
if moving_to_target:
state = AntNitwitState.MOVING
_handle_wandering(delta)
func _handle_wandering(delta: float) -> void:
if state != AntNitwitState.WANDERING:
return
_wander(delta)
func _on_moving_ended() -> void:
state = AntNitwitState.WANDERING
func _on_moving_started() -> void:
state = AntNitwitState.MOVING

View File

@@ -1,13 +1,23 @@
extends Unit
class_name ControlledUnit
signal moving_started
signal moving_ended
var selected: bool = false
var moving_to_target: bool = false
var ground_plane: Plane = Plane(Vector3.UP, 0)
@onready var camera: Camera3D = get_viewport().get_camera_3d()
@onready var selection_sprite: Sprite3D = $SelectionSprite
func _init() -> void:
max_wander_distance = 2
min_wander_interval = 0.5
max_wander_interval = 30
func _ready() -> void:
assert(camera != null, "camera missing!")
assert(selection_sprite != null, "selection_sprite missing!")
@@ -16,6 +26,13 @@ func _ready() -> void:
super._ready()
func _physics_process(delta: float) -> void:
super._physics_process(delta)
if moving_to_target and nav_agent.is_navigation_finished():
moving_to_target = false
moving_ended.emit()
func _input(event: InputEvent) -> void:
if not is_on_screen:
return
@@ -26,6 +43,8 @@ func _input(event: InputEvent) -> void:
button_event.button_index == MOUSE_BUTTON_RIGHT
and button_event.pressed
):
moving_to_target = true
moving_started.emit()
_set_target_click(button_event.position)

View File

@@ -4,9 +4,9 @@ class_name Unit
const MOVE_SPEED: float = 3
const TURN_SPEED: float = 10
const MAX_WANDER_DISTANCE: float = 5
const MIN_WANDER_INTERVAL: float = 0.25
const MAX_WANDER_INTERVAL: float = 5
var max_wander_distance: float = 5
var min_wander_interval: float = 0.25
var max_wander_interval: float = 5
var hovered: bool = false
var is_on_screen: bool = false
@@ -94,13 +94,13 @@ func _wander(delta: float) -> void:
wandering_timer -= delta
if wandering_timer <= 0:
var new_pos_offset := Vector3(
randf_range(-MAX_WANDER_DISTANCE, MAX_WANDER_DISTANCE),
randf_range(-max_wander_distance, max_wander_distance),
0,
randf_range(-MAX_WANDER_DISTANCE, MAX_WANDER_DISTANCE),
randf_range(-max_wander_distance, max_wander_distance),
)
var new_pos := wandering_center + new_pos_offset
nav_agent.set_target_position(new_pos)
wandering_timer = randf_range(-MIN_WANDER_INTERVAL, MAX_WANDER_INTERVAL)
wandering_timer = randf_range(-min_wander_interval, max_wander_interval)
func _on_nav_agent_velocity_computed(safe_velocity: Vector3) -> void: