TowerGame/objects/unit.tscn

55 lines
1.7 KiB
Plaintext
Raw Normal View History

[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
2025-04-23 11:56:29 +01:00
avoidance_enabled = true
radius = 1.0
time_horizon_obstacles = 1.0
max_speed = 5.0
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")
2025-04-21 20:49:48 +01:00
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.668082, 0)
billboard = 1
text = "blablabla"