[gd_scene format=3 uid="uid://cx7xtulmd8ay4"]

[ext_resource type="Script" uid="uid://ces1j6plojyra" path="res://addons/godot-xr-tools/xr/start_xr.gd" id="1_o5qli"]
[ext_resource type="PackedScene" uid="uid://draoeoi7h6mv6" path="res://scenes/player.tscn" id="2_0wfyh"]
[ext_resource type="Script" uid="uid://iishy6cydfps" path="res://scripts/multiplayer_spawner.gd" id="3_sugp2"]
[ext_resource type="PackedScene" uid="uid://clujaf3u776a3" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.tscn" id="6_o6xl0"]
[ext_resource type="PackedScene" uid="uid://c8qjmks8fhg31" path="res://scenes/structures and objects/example_table.tscn" id="6_tefeu"]
[ext_resource type="PackedScene" uid="uid://c41ay4f0417rq" path="res://scenes/net_ui.tscn" id="7_o6xl0"]
[ext_resource type="PackedScene" uid="uid://cb0vydd7mmy4b" path="res://scenes/menu_player.tscn" id="8_85g3d"]
[ext_resource type="PackedScene" uid="uid://dgdb1texynduw" path="res://addons/godot-xr-tools/objects/virtual_keyboard.tscn" id="8_tipki"]
[ext_resource type="PackedScene" uid="uid://bqerjpv5dkagm" path="res://plugAndPlay/grab_obj.tscn" id="9_85g3d"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sugp2"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)

[sub_resource type="Sky" id="Sky_jyhfs"]
sky_material = SubResource("ProceduralSkyMaterial_sugp2")

[sub_resource type="Environment" id="Environment_tbgi4"]
background_mode = 2
sky = SubResource("Sky_jyhfs")
glow_enabled = true

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tbgi4"]
albedo_color = Color(0.4351923, 0.43519226, 0.43519226, 1)

[sub_resource type="PlaneMesh" id="PlaneMesh_6500s"]
lightmap_size_hint = Vector2i(52, 52)
material = SubResource("StandardMaterial3D_tbgi4")
size = Vector2(10, 10)

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_sugp2"]
points = PackedVector3Array(-5, 0, -5, -5, 0, 5, 5, 0, -5, 5, 0, 5)

[node name="main" type="Node" unique_id=296749525]

[node name="netUI" parent="." unique_id=906191773 instance=ExtResource("7_o6xl0")]

[node name="scripts" type="Node" parent="." unique_id=2104275164]

[node name="networkHandler" type="Node" parent="scripts" unique_id=1929475105]

[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1728649695]
environment = SubResource("Environment_tbgi4")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=346435635]
transform = Transform3D(-0.99844074, -0.019092038, 0.05245495, 0, 0.9396926, 0.34202012, -0.05582139, 0.34148684, -0.9382274, 0, 0, 0)
shadow_enabled = true

[node name="XRToolsStartXR" type="Node" parent="." unique_id=496753110]
script = ExtResource("1_o5qli")
metadata/_custom_type_script = "uid://ces1j6plojyra"

[node name="world" type="Node3D" parent="." unique_id=499557932]

[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="world" unique_id=357195240]
unique_name_in_owner = true
_spawnable_scenes = PackedStringArray("uid://draoeoi7h6mv6")
spawn_path = NodePath("../players")
script = ExtResource("3_sugp2")
network_player = ExtResource("2_0wfyh")

[node name="Viewport2Din3D" parent="world" unique_id=220980373 instance=ExtResource("6_o6xl0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.4314556, 37.370678, -0.71896917)
scene = ExtResource("7_o6xl0")
viewport_size = Vector2(1154, 649)
transparent = 1
scene_properties_keys = PackedStringArray("net_ui.gd")

[node name="VirtualKeyboard" parent="world" unique_id=1084765825 instance=ExtResource("8_tipki")]
transform = Transform3D(1, 3.090862e-08, 1.2802769e-08, -3.090862e-08, 0.70710677, 0.70710677, 1.2802772e-08, -0.70710677, 0.70710677, -4.433024, 36.10894, -0.3101681)
scene_properties_keys = PackedStringArray("virtual_keyboard_2d.gd")

[node name="players" type="Node3D" parent="world" unique_id=1684849232]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1082158, 0)

[node name="floor" type="StaticBody3D" parent="world" unique_id=1317083778]

[node name="MeshInstance3D" type="MeshInstance3D" parent="world/floor" unique_id=734052999]
mesh = SubResource("PlaneMesh_6500s")

[node name="CollisionShape3D" type="CollisionShape3D" parent="world/floor" unique_id=1855732969]
shape = SubResource("ConvexPolygonShape3D_sugp2")

[node name="exampleTable" parent="world" unique_id=533933729 instance=ExtResource("6_tefeu")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.058960974, 0.0052758455, -3.7729044)

[node name="exampleTable2" parent="world" unique_id=811627054 instance=ExtResource("6_tefeu")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.1148345, 0.0052758455, -3.7110677)

[node name="exampleTable" parent="world/exampleTable2" unique_id=1026160462 instance=ExtResource("6_tefeu")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -2.8783445, 0.0052758455, 7.303864)

[node name="exampleTable2" parent="world/exampleTable2" unique_id=866294949 instance=ExtResource("6_tefeu")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -5.9342184, 0.0052758455, 7.2420273)

[node name="exampleTable3" parent="world/exampleTable2" unique_id=653745227 instance=ExtResource("6_tefeu")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.16694403, 0.0052758455, 7.504451)

[node name="exampleTable3" parent="world" unique_id=797173023 instance=ExtResource("6_tefeu")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.986328, 0.0052758455, -3.9734917)

[node name="menuPlayer" parent="world" unique_id=804209568 instance=ExtResource("8_85g3d")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.4556284, 35.433014, 1.0342389)

[node name="grabObj" parent="." unique_id=1232940438 instance=ExtResource("9_85g3d")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.1961617, 0.05, 0.82860774)

[node name="grabObj2" parent="." unique_id=1720900224 instance=ExtResource("9_85g3d")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4958131, 0.05, -1.3832724)
