navmesh.tscn 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [gd_scene load_steps=10 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://c2d3qxdexm53n" path="res://models/level_mesh/level_mesh.obj" id="3_bu7c5"]
  5. [ext_resource type="Script" path="res://character.gd" id="4_u7d3d"]
  6. [ext_resource type="ArrayMesh" uid="uid://wuj3rp35gym1" path="res://models/robot/robot.obj" id="5_17f0w"]
  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. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2y26t"]
  18. albedo_color = Color(1.01075e-06, 0, 0.451248, 1)
  19. metallic = 0.3
  20. roughness = 0.1
  21. [node name="Node3D" type="Node3D"]
  22. _import_path = NodePath(".")
  23. script = ExtResource("1")
  24. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  25. environment = SubResource("Environment_c0if4")
  26. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  27. 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)
  28. shadow_enabled = true
  29. directional_shadow_mode = 0
  30. directional_shadow_fade_start = 1.0
  31. directional_shadow_max_distance = 35.0
  32. [node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
  33. navigation_mesh = ExtResource("2_lcfvj")
  34. [node name="LevelMesh" type="MeshInstance3D" parent="NavigationRegion3D"]
  35. transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, -0.0452547, 0)
  36. mesh = ExtResource("3_bu7c5")
  37. surface_material_override/0 = SubResource("StandardMaterial3D_2y26t")
  38. [node name="CameraBase" type="Node3D" parent="."]
  39. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.07475, 0, 1.96678)
  40. [node name="Camera3D" type="Camera3D" parent="CameraBase"]
  41. 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)
  42. fov = 50.0
  43. near = 0.1
  44. [node name="RobotBase" type="Marker3D" parent="."]
  45. script = ExtResource("4_u7d3d")
  46. [node name="Robot" type="MeshInstance3D" parent="RobotBase"]
  47. transform = Transform3D(-0.6, 0, -9.05975e-08, 0, 0.6, 0, 9.05975e-08, 0, -0.6, 0, 1, 0)
  48. gi_mode = 2
  49. mesh = ExtResource("5_17f0w")
  50. [node name="NavigationAgent3D" type="NavigationAgent3D" parent="RobotBase"]
  51. path_desired_distance = 0.1