navmesh.tscn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [gd_scene load_steps=9 format=3 uid="uid://dkhg8e00d02f2"]
  2. [ext_resource type="Script" path="res://navmesh.gd" id="1"]
  3. [ext_resource type="NavigationMesh" uid="uid://ii7ckx3dvrs2" path="res://navmesh.res" id="2_lcfvj"]
  4. [ext_resource type="ArrayMesh" uid="uid://gmytdjp2bcsq" path="res://level_mesh.res" id="3_1cas0"]
  5. [ext_resource type="Script" path="res://character.gd" id="4_u7d3d"]
  6. [ext_resource type="ArrayMesh" uid="uid://prwe6io8p1iv" path="res://robot.res" id="5_ple0n"]
  7. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ps07l"]
  8. sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  9. ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  10. [sub_resource type="Sky" id="Sky_baxfs"]
  11. sky_material = SubResource("ProceduralSkyMaterial_ps07l")
  12. [sub_resource type="Environment" id="Environment_c0if4"]
  13. background_mode = 2
  14. sky = SubResource("Sky_baxfs")
  15. tonemap_mode = 3
  16. tonemap_white = 6.0
  17. [node name="Node3D" type="Node3D"]
  18. _import_path = NodePath(".")
  19. script = ExtResource("1")
  20. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  21. environment = SubResource("Environment_c0if4")
  22. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  23. transform = Transform3D(-0.723713, -0.678436, -0.12635, -0.277002, 0.11789, 0.95361, -0.632068, 0.725139, -0.273247, 10.0773, 5.02381, 0)
  24. shadow_enabled = true
  25. directional_shadow_mode = 0
  26. directional_shadow_fade_start = 1.0
  27. directional_shadow_max_distance = 35.0
  28. [node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
  29. navigation_mesh = ExtResource("2_lcfvj")
  30. [node name="LevelMesh" type="MeshInstance3D" parent="NavigationRegion3D"]
  31. transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, -0.0452547, 0)
  32. mesh = ExtResource("3_1cas0")
  33. [node name="CameraBase" type="Node3D" parent="."]
  34. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.07475, 0, 1.96678)
  35. [node name="Camera3D" type="Camera3D" parent="CameraBase"]
  36. transform = Transform3D(-0.560554, -0.429252, 0.708182, 0.106298, 0.8108, 0.575591, -0.821267, 0.397928, -0.408869, 18.091, 14.744, -7.017)
  37. fov = 50.0
  38. near = 0.1
  39. [node name="RobotBase" type="Marker3D" parent="."]
  40. script = ExtResource("4_u7d3d")
  41. [node name="Robot" type="MeshInstance3D" parent="RobotBase"]
  42. transform = Transform3D(-0.5, 0, -7.54979e-08, 0, 1, 0, 7.54979e-08, 0, -0.5, 0, 1, 0)
  43. gi_mode = 2
  44. mesh = ExtResource("5_ple0n")
  45. [node name="NavigationAgent3D" type="NavigationAgent3D" parent="RobotBase"]
  46. path_desired_distance = 0.1