immersive-home/content/main.tscn

88 lines
4.3 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=13 format=3 uid="uid://eecv28y6jxk4"]
2023-10-16 20:10:20 +03:00
2023-10-23 00:01:06 +03:00
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"]
2023-11-05 16:16:07 +02:00
[ext_resource type="Script" path="res://content/raycast.gd" id="1_tsqxc"]
[ext_resource type="Script" path="res://content/main.gd" id="1_uvrd4"]
[ext_resource type="PackedScene" uid="uid://c3kdssrmv84kv" path="res://content/ui/menu/menu.tscn" id="3_1tbp3"]
2023-11-11 19:17:25 +02:00
[ext_resource type="Texture2D" uid="uid://bo55nohs0wsgf" path="res://assets/materials/pointer.png" id="4_wcfej"]
2023-11-02 02:22:48 +02:00
[ext_resource type="PackedScene" uid="uid://ctltchlf2j2r4" path="res://addons/xr-simulator/XRSimulator.tscn" id="5_3qc8g"]
[ext_resource type="Material" uid="uid://bf5ina366dwm6" path="res://assets/materials/sky.material" id="5_wgwf8"]
[ext_resource type="PackedScene" uid="uid://83lb5p4e0qk0" path="res://content/scenes/house.tscn" id="8_qkrg7"]
2023-10-23 02:58:18 +03:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m58yb"]
ao_enabled = true
2023-10-23 00:01:06 +03:00
[sub_resource type="BoxMesh" id="BoxMesh_ir3co"]
2023-10-23 02:58:18 +03:00
material = SubResource("StandardMaterial3D_m58yb")
size = Vector3(0.01, 0.01, 0.01)
2023-10-23 00:01:06 +03:00
[sub_resource type="Sky" id="Sky_vhymk"]
2023-11-02 02:22:48 +02:00
sky_material = ExtResource("5_wgwf8")
2023-10-23 00:01:06 +03:00
[sub_resource type="Environment" id="Environment_7ghp0"]
2023-10-23 02:58:18 +03:00
background_mode = 2
background_color = Color(0.466667, 0.47451, 0.462745, 0)
2023-10-23 00:01:06 +03:00
sky = SubResource("Sky_vhymk")
2023-10-23 02:58:18 +03:00
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.72
2023-10-16 20:10:20 +03:00
[node name="Main" type="Node3D"]
2023-11-02 02:22:48 +02:00
transform = Transform3D(1, -0.000296142, 0.000270963, 0.000296143, 1, -4.61078e-06, -0.000270962, 4.67014e-06, 1, 0, 0, 0)
script = ExtResource("1_uvrd4")
2023-10-16 20:10:20 +03:00
[node name="XROrigin3D" type="XROrigin3D" parent="."]
[node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
2023-11-18 15:27:42 +02:00
transform = Transform3D(1, 2.47971e-10, 3.49246e-10, 9.47986e-12, 1, 2.08834e-08, 0, 4.54747e-13, 1, -7.27596e-12, 0.798091, 0.311748)
2023-10-16 20:10:20 +03:00
2023-10-23 00:01:06 +03:00
[node name="XRControllerLeft" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.469893, 0.597213, -0.251112)
2023-10-16 20:10:20 +03:00
tracker = &"left_hand"
pose = &"aim"
2023-10-23 00:01:06 +03:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerLeft"]
mesh = SubResource("BoxMesh_ir3co")
2023-10-16 20:10:20 +03:00
2023-10-30 02:21:50 +02:00
[node name="Menu" parent="XROrigin3D/XRControllerLeft" instance=ExtResource("3_1tbp3")]
2023-11-07 22:07:34 +02:00
transform = Transform3D(1, -0.000382732, -0.000120985, 8.65898e-05, 0.5, -0.866025, 0.000391948, 0.866025, 0.5, 0.0669508, 0.0876772, -0.101157)
2023-10-30 02:21:50 +02:00
2023-10-23 00:01:06 +03:00
[node name="XRControllerRight" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.488349, 0.559219, -0.2988)
2023-10-16 20:10:20 +03:00
tracker = &"right_hand"
pose = &"aim"
2023-10-23 00:01:06 +03:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerRight"]
mesh = SubResource("BoxMesh_ir3co")
2023-10-16 20:10:20 +03:00
2023-10-23 02:58:18 +03:00
[node name="Raycast" type="Node3D" parent="XROrigin3D/XRControllerRight" node_paths=PackedStringArray("ray")]
script = ExtResource("1_tsqxc")
ray = NodePath("RayCast3D")
[node name="RayCast3D" type="RayCast3D" parent="XROrigin3D/XRControllerRight/Raycast"]
2023-11-18 15:27:42 +02:00
transform = Transform3D(-4.62364e-10, 4.3714e-08, 0.999998, 0.999999, -4.37194e-08, 9.2768e-12, 4.37103e-08, 0.999999, -4.3714e-08, -0.000467122, 0.00228411, -0.0016689)
2023-10-23 02:58:18 +03:00
target_position = Vector3(0, -5, 0)
2023-11-11 19:17:25 +02:00
[node name="Decal" type="Decal" parent="XROrigin3D/XRControllerRight/Raycast"]
transform = Transform3D(0.999999, -0.000567105, -2.5179e-05, -2.51789e-05, 4.39886e-08, -0.999999, 0.000567105, 1, 2.97064e-08, -0.000775784, -1.09076e-05, -2.46767)
2023-11-18 15:27:42 +02:00
size = Vector3(0.02, 4.91995, 0.02)
2023-11-11 19:17:25 +02:00
texture_albedo = ExtResource("4_wcfej")
2023-11-16 20:23:17 +02:00
upper_fade = 0.000985425
lower_fade = 0.000919435
2023-11-11 19:17:25 +02:00
2023-10-23 00:01:06 +03:00
[node name="StartXR" parent="." instance=ExtResource("1_i4c04")]
2023-10-16 20:10:20 +03:00
enable_passthrough = true
2023-10-23 00:01:06 +03:00
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_7ghp0")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
2023-10-23 02:58:18 +03:00
transform = Transform3D(0.834925, -0.386727, -0.39159, 0.550364, 0.586681, 0.594058, 0, -0.711511, 0.702675, 0, 7.21041, 2.06458)
shadow_enabled = true
2023-11-02 02:22:48 +02:00
[node name="XRSimulator" parent="." instance=ExtResource("5_3qc8g")]
xr_origin = NodePath("../XROrigin3D")
[node name="House" parent="." instance=ExtResource("8_qkrg7")]
2023-11-12 18:36:23 +02:00
transform = Transform3D(0.404247, 0.000180645, 0.914648, 0.00017221, 0.999999, -0.000273614, -0.914648, 0.00026812, 0.404247, -0.343479, 0.000110551, 1.91547)
2023-11-18 15:27:42 +02:00
visible = false