[gd_scene load_steps=7 format=3 uid="uid://1gcj3gixy6hs"] [ext_resource type="Script" uid="uid://f0j7u0so2ug5" path="res://scripts/unit.gd" id="1_dberb"] [ext_resource type="Texture2D" uid="uid://3javrn230ddq" path="res://assets/images/enemy.png" id="2_2pk7s"] [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_a0tk4"] friction = 0.25 bounce = 0.2 [sub_resource type="SphereShape3D" id="SphereShape3D_a202f"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jka67"] transparency = 2 alpha_scissor_threshold = 0.5 alpha_antialiasing_mode = 0 albedo_texture = ExtResource("2_2pk7s") texture_filter = 0 billboard_mode = 1 [sub_resource type="QuadMesh" id="QuadMesh_i5arm"] material = SubResource("StandardMaterial3D_jka67") [node name="Enemy" type="RigidBody3D"] axis_lock_angular_x = true axis_lock_angular_y = true axis_lock_angular_z = true physics_material_override = SubResource("PhysicsMaterial_a0tk4") script = ExtResource("1_dberb") movement_force = 5.0 max_speed = 5.0 [node name="NavigationAgent3D" type="NavigationAgent3D" parent="."] path_desired_distance = 0.5 target_desired_distance = 0.5 path_max_distance = 1.01 avoidance_enabled = true max_speed = 5.0 debug_enabled = true debug_path_custom_color = Color(1, 0, 0.0808306, 1) [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("SphereShape3D_a202f") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("QuadMesh_i5arm") [node name="ShapeCast3D" type="ShapeCast3D" parent="."] shape = SubResource("SphereShape3D_a202f")