[gd_scene format=3 uid="uid://dg2g1nd82lyxm"] [ext_resource type="Script" uid="uid://bh04b3iify0hd" path="res://scripts/main.gd" id="1_main"] [ext_resource type="Script" uid="uid://1jimgt3d4bjj" path="res://scripts/player.gd" id="2_player"] [ext_resource type="Script" uid="uid://v0xpntk6uumr" path="res://scripts/ground_pick.gd" id="3_ground"] [ext_resource type="Script" uid="uid://ds5fkbscljkxi" path="res://scripts/position_authority_client.gd" id="4_auth"] [ext_resource type="Script" uid="uid://bv0xprp660hib" path="res://scripts/interaction_request_client.gd" id="5_ix"] [ext_resource type="Script" uid="uid://n3p4f3fky3nv" path="res://scripts/interaction_radius_indicators.gd" id="6_rad"] [ext_resource type="Script" uid="uid://b8x7c4m3r5t8t2" path="res://scripts/isometric_follow_camera.gd" id="7_iso_cam"] [sub_resource type="NavigationMesh" id="NavigationMesh_district"] vertices = PackedVector3Array(-0.6999998, 0.25, -0.6999998, -0.10000038, 0.25, -0.6999998, -0.10000038, 0.25, -9.55, -9.55, 0.25, 0.05000019, -1, 0.25, 0.05000019, -9.55, 0.25, -9.55, 8.75, 0.25, -7.4500003, 8.75, 0.25, -6.4000006, 9.65, 0.25, -6.4000006, 9.65, 0.25, -9.55, 0.5, 0.25, -0.6999998, 6.6499996, 0.25, -5.2000003, 6.200001, 0.25, -5.5, 8.450001, 0.25, -7.75, 6.5, 0.25, -7.75, 6.200001, 0.25, -7.4500003, 7.1000004, 2.8000002, -6.8500004, 7.1000004, 2.8000002, -6.1000004, 7.8500004, 2.8000002, -6.1000004, 7.8500004, 2.8000002, -6.8500004, 7.25, 0.25, -6.7000003, 7.25, 0.25, -6.25, 7.700001, 0.25, -6.25, 7.700001, 0.25, -6.7000003, 8.75, 0.25, -5.5, 7.550001, 0.25, 3.8000002, 7.550001, 0.25, 5, 9.65, 0.25, 5, 7.25, 0.25, 3.5, 0.9499998, 0.25, 0.5, 0.5, 0.25, 0.8000002, 4.55, 0.25, 3.9499998, 4.8500004, 0.25, 3.5, 8.450001, 0.25, -5.2000003, 0.9499998, 0.25, -0.39999962, -0.6999998, 0.25, 0.8000002, 4.55, 0.25, 6.200001, 4.55, 0.25, 9.65, -9.55, 0.25, 9.65, 5.45, 2.2, 4.4000006, 5.45, 2.2, 5.6000004, 6.6499996, 2.2, 5.6000004, 6.6499996, 2.2, 4.4000006, 5.6000004, 0.25, 4.55, 5.6000004, 0.25, 5.45, 6.5, 0.25, 5.45, 6.5, 0.25, 4.55, 7.550001, 0.25, 6.200001, 7.25, 0.25, 6.5, 9.800001, 0.40000004, 9.800001, 4.8500004, 0.25, 6.5) polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(4, 3, 0), PackedInt32Array(0, 3, 5), PackedInt32Array(0, 5, 2), PackedInt32Array(7, 6, 8), PackedInt32Array(8, 6, 9), PackedInt32Array(12, 11, 10), PackedInt32Array(9, 6, 13), PackedInt32Array(13, 14, 9), PackedInt32Array(9, 14, 2), PackedInt32Array(10, 1, 12), PackedInt32Array(12, 1, 15), PackedInt32Array(15, 1, 2), PackedInt32Array(2, 14, 15), PackedInt32Array(19, 18, 16), PackedInt32Array(16, 18, 17), PackedInt32Array(23, 22, 20), PackedInt32Array(20, 22, 21), PackedInt32Array(24, 7, 8), PackedInt32Array(27, 26, 25), PackedInt32Array(25, 28, 27), PackedInt32Array(27, 28, 24), PackedInt32Array(27, 24, 8), PackedInt32Array(32, 31, 29), PackedInt32Array(29, 31, 30), PackedInt32Array(28, 33, 24), PackedInt32Array(29, 34, 32), PackedInt32Array(32, 34, 28), PackedInt32Array(10, 11, 34), PackedInt32Array(34, 11, 33), PackedInt32Array(34, 33, 28), PackedInt32Array(30, 31, 35), PackedInt32Array(35, 31, 36), PackedInt32Array(36, 37, 35), PackedInt32Array(35, 37, 3), PackedInt32Array(3, 37, 38), PackedInt32Array(35, 3, 4), PackedInt32Array(42, 41, 39), PackedInt32Array(39, 41, 40), PackedInt32Array(46, 45, 43), PackedInt32Array(43, 45, 44), PackedInt32Array(47, 26, 27), PackedInt32Array(47, 27, 48), PackedInt32Array(48, 27, 49), PackedInt32Array(48, 49, 37), PackedInt32Array(37, 36, 50), PackedInt32Array(37, 50, 48)] geometry_collision_mask = 1 cell_size = 0.15 cell_height = 0.15 border_size = 0.15 agent_height = 1.0 agent_radius = 0.4 agent_max_climb = 0.35 [sub_resource type="BoxMesh" id="BoxMesh_floor"] size = Vector3(20, 0.2, 20) [sub_resource type="BoxShape3D" id="BoxShape3D_floor"] size = Vector3(20, 0.2, 20) [sub_resource type="BoxMesh" id="BoxMesh_terminal"] size = Vector3(0.9, 1, 0.4) [sub_resource type="StandardMaterial3D" id="Mat_terminal"] albedo_color = Color(0.28, 0.38, 0.45, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_terminal"] size = Vector3(0.9, 1, 0.4) [sub_resource type="BoxMesh" id="BoxMesh_move_reject_pedestal"] size = Vector3(1.5, 2.5, 1.5) [sub_resource type="StandardMaterial3D" id="Mat_move_reject_pedestal"] albedo_color = Color(0.92, 0.42, 0.12, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_move_reject_pedestal"] size = Vector3(1.5, 2.5, 1.5) [sub_resource type="BoxMesh" id="BoxMesh_move_reject_farpad"] size = Vector3(2.5, 0.12, 2.5) [sub_resource type="StandardMaterial3D" id="Mat_move_reject_farpad"] albedo_color = Color(0.32, 0.38, 0.55, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_move_reject_farpad"] size = Vector3(2.5, 0.12, 2.5) [sub_resource type="BoxMesh" id="BoxMesh_obstacle"] size = Vector3(2, 2, 2) [sub_resource type="BoxShape3D" id="BoxShape3D_obstacle"] size = Vector3(2, 2, 2) [sub_resource type="BoxMesh" id="BoxMesh_marker"] size = Vector3(0.22, 0.35, 0.22) [sub_resource type="StandardMaterial3D" id="Mat_marker_base"] albedo_color = Color(0.15, 0.4, 1, 1) [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_player"] radius = 0.4 height = 1.0 [sub_resource type="CapsuleMesh" id="CapsuleMesh_player"] radius = 0.4 height = 1.0 [sub_resource type="StandardMaterial3D" id="Mat_player_capsule"] specular_mode = 2 albedo_color = Color(0.42, 0.52, 0.7, 1) [node name="Main" type="Node3D" unique_id=1358372723] script = ExtResource("1_main") [node name="World" type="Node3D" parent="." unique_id=1042212190] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="World" unique_id=201819776] transform = Transform3D(0.866025, -0.353553, 0.353553, 0, 0.707107, 0.707107, -0.5, -0.612372, 0.612372, 0, 6, 0) light_specular = 0.0 shadow_enabled = true [node name="IsometricFollowCamera" type="Node3D" parent="World" unique_id=1124088856] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 10, 12) script = ExtResource("7_iso_cam") [node name="Camera3D" type="Camera3D" parent="World/IsometricFollowCamera" unique_id=1124088857] current = true fov = 50.0 [node name="NavigationRegion3D" type="NavigationRegion3D" parent="World" unique_id=8880001] navigation_mesh = SubResource("NavigationMesh_district") [node name="Floor" type="StaticBody3D" parent="World/NavigationRegion3D" unique_id=1800743112 groups=["walkable"]] [node name="MeshInstance3D" type="MeshInstance3D" parent="World/NavigationRegion3D/Floor" unique_id=152652175] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0) mesh = SubResource("BoxMesh_floor") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/Floor" unique_id=409532142] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0) shape = SubResource("BoxShape3D_floor") [node name="PrototypeTerminal" type="StaticBody3D" parent="World/NavigationRegion3D" unique_id=1700001 groups=["walkable"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="MeshInstance3D" type="MeshInstance3D" parent="World/NavigationRegion3D/PrototypeTerminal" unique_id=1700002] mesh = SubResource("BoxMesh_terminal") surface_material_override/0 = SubResource("Mat_terminal") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/PrototypeTerminal" unique_id=1700006] shape = SubResource("BoxShape3D_terminal") [node name="MoveRejectPedestal" type="StaticBody3D" parent="World/NavigationRegion3D" unique_id=1900021 groups=["walkable"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.5, 0, -6.5) [node name="MeshInstance3D" type="MeshInstance3D" parent="World/NavigationRegion3D/MoveRejectPedestal" unique_id=1900022] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0) mesh = SubResource("BoxMesh_move_reject_pedestal") surface_material_override/0 = SubResource("Mat_move_reject_pedestal") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/MoveRejectPedestal" unique_id=1900023] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0) shape = SubResource("BoxShape3D_move_reject_pedestal") [node name="MoveRejectFarPad" type="StaticBody3D" parent="World/NavigationRegion3D" unique_id=1900031 groups=["walkable"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 0.06, 9) [node name="MeshInstance3D" type="MeshInstance3D" parent="World/NavigationRegion3D/MoveRejectFarPad" unique_id=1900032] mesh = SubResource("BoxMesh_move_reject_farpad") surface_material_override/0 = SubResource("Mat_move_reject_farpad") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/MoveRejectFarPad" unique_id=1900033] shape = SubResource("BoxShape3D_move_reject_farpad") [node name="Obstacle" type="StaticBody3D" parent="World/NavigationRegion3D" unique_id=1638845763] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 5) [node name="MeshInstance3D" type="MeshInstance3D" parent="World/NavigationRegion3D/Obstacle" unique_id=750473628] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) mesh = SubResource("BoxMesh_obstacle") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/NavigationRegion3D/Obstacle" unique_id=1344302688] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) shape = SubResource("BoxShape3D_obstacle") [node name="InteractionMarkers" type="Node3D" parent="World" unique_id=1700003] script = ExtResource("6_rad") [node name="MarkerA" type="MeshInstance3D" parent="World/InteractionMarkers" unique_id=1700004] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1, 0.25, 0.9) mesh = SubResource("BoxMesh_marker") surface_material_override/0 = SubResource("Mat_marker_base") [node name="MarkerB" type="MeshInstance3D" parent="World/InteractionMarkers" unique_id=1700005] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.95, 0.22, -1.05) mesh = SubResource("BoxMesh_marker") surface_material_override/0 = SubResource("Mat_marker_base") [node name="Player" type="CharacterBody3D" parent="World" unique_id=352931696] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0.9, -5) collision_layer = 2 floor_max_angle = 0.872665 floor_snap_length = 0.22 safe_margin = 0.055 script = ExtResource("2_player") [node name="CollisionShape3D" type="CollisionShape3D" parent="World/Player" unique_id=1695755590] shape = SubResource("CapsuleShape3D_player") [node name="NavigationAgent3D" type="NavigationAgent3D" parent="World/Player" unique_id=8880002] path_desired_distance = 0.35 target_desired_distance = 0.35 radius = 0.4 [node name="MeshInstance3D" type="MeshInstance3D" parent="World/Player" unique_id=2027034386] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.034, 0) cast_shadow = 0 mesh = SubResource("CapsuleMesh_player") surface_material_override/0 = SubResource("Mat_player_capsule") [node name="GroundPick" type="Node3D" parent="." unique_id=2500001] script = ExtResource("3_ground") [node name="PositionAuthorityClient" type="Node" parent="." unique_id=2500002] script = ExtResource("4_auth") [node name="InteractionRequestClient" type="Node" parent="." unique_id=2500003] script = ExtResource("5_ix") [node name="UICanvas" type="CanvasLayer" parent="." unique_id=9000001] [node name="MoveRejectLabel" type="Label" parent="UICanvas" unique_id=9000002] anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 12.0 offset_top = -44.0 offset_right = -12.0 offset_bottom = -8.0 grow_horizontal = 2 autowrap_mode = 3