-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathMain.tscn
111 lines (82 loc) · 4.32 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[gd_scene load_steps=15 format=3 uid="uid://ylx5afjemhln"]
[ext_resource type="Script" path="res://Main.gd" id="1"]
[ext_resource type="Material" uid="uid://cok6b068i8j3m" path="res://assets/wahooney.itch.io/green_grid.tres" id="2"]
[ext_resource type="PackedScene" uid="uid://c1lwn8ckewvro" path="res://addons/godot-openvr/scenes/ovr_first_person.tscn" id="3_0jmmx"]
[ext_resource type="Environment" uid="uid://ba8m5tewuolm" path="res://environment.tres" id="4"]
[ext_resource type="Script" path="res://player/HUD_Anchor.gd" id="4_n1047"]
[ext_resource type="PackedScene" path="res://misc/Table.tscn" id="7"]
[ext_resource type="PackedScene" path="res://misc/Box.tscn" id="8"]
[ext_resource type="Script" path="res://player/right_controller.gd" id="8_oqay4"]
[ext_resource type="PackedScene" uid="uid://7q2uyb55p6e5" path="res://misc/Cup.tscn" id="11"]
[sub_resource type="BoxMesh" id="BoxMesh_jxy6n"]
size = Vector3(0.01, 0.01, 0.01)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8pi1c"]
albedo_color = Color(0.109804, 0.27451, 1, 1)
[sub_resource type="BoxMesh" id="BoxMesh_ynikn"]
material = SubResource("StandardMaterial3D_8pi1c")
size = Vector3(0.01, 0.01, 0.01)
[sub_resource type="PlaneMesh" id="1"]
material = ExtResource("2")
size = Vector2(400, 400)
subdivide_width = 10
subdivide_depth = 10
[sub_resource type="BoxShape3D" id="2"]
size = Vector3(1000, 2, 1000)
[node name="Main" type="Node3D"]
script = ExtResource("1")
[node name="DirectionalLight" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.756623, -0.453791, -0.470739, 0.644498, 0.396268, 0.653907, -0.110198, -0.798151, 0.592293, 0, 4, 0)
shadow_enabled = true
shadow_bias = 0.01
directional_shadow_max_distance = 50.0
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource("4")
[node name="OVRFirstPerson" parent="." instance=ExtResource("3_0jmmx")]
default_action_set = null
viewport = null
physics_factor = null
[node name="HUD_Anchor" parent="OVRFirstPerson" index="1"]
script = ExtResource("4_n1047")
[node name="FPS" type="Label3D" parent="OVRFirstPerson/HUD_Anchor" index="0"]
transform = Transform3D(0.965182, 0.11344, 0.235702, -0.0501897, 0.964641, -0.258746, -0.25672, 0.237907, 0.936747, -0.32241, 0.322052, -0.966649)
pixel_size = 0.003
text = "FPS: 00"
[node name="TestCube" type="MeshInstance3D" parent="OVRFirstPerson/Left_Hand" index="1"]
mesh = SubResource("BoxMesh_jxy6n")
skeleton = NodePath("../../Right_Hand")
[node name="TestCube" type="MeshInstance3D" parent="OVRFirstPerson/Right_Hand" index="1"]
mesh = SubResource("BoxMesh_jxy6n")
[node name="aim_left_hand" type="XRController3D" parent="OVRFirstPerson"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 1.25, 0)
tracker = &"left_hand"
pose = &"aim"
[node name="TestCube" type="MeshInstance3D" parent="OVRFirstPerson/aim_left_hand"]
mesh = SubResource("BoxMesh_ynikn")
skeleton = NodePath("../../aim_right_hand")
[node name="aim_right_hand" type="XRController3D" parent="OVRFirstPerson"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1.25, 0)
tracker = &"right_hand"
pose = &"aim"
script = ExtResource("8_oqay4")
[node name="TestCube" type="MeshInstance3D" parent="OVRFirstPerson/aim_right_hand"]
mesh = SubResource("BoxMesh_ynikn")
[node name="Floor" type="StaticBody3D" parent="."]
collision_layer = 2
collision_mask = 0
[node name="Mesh" type="MeshInstance3D" parent="Floor"]
mesh = SubResource("1")
[node name="CollisionShape" type="CollisionShape3D" parent="Floor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
shape = SubResource("2")
[node name="Objects" type="Node3D" parent="."]
[node name="Table" parent="Objects" instance=ExtResource("7")]
[node name="Box01" parent="Objects" instance=ExtResource("8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 1, -2)
[node name="Box02" parent="Objects" instance=ExtResource("8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 1, 0)
[node name="Box03" parent="Objects" instance=ExtResource("8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, -1)
[node name="Cup" parent="Objects" instance=ExtResource("11")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.702487, -6)
[connection signal="button_pressed" from="OVRFirstPerson/aim_right_hand" to="OVRFirstPerson/aim_right_hand" method="_on_aim_right_hand_button_pressed"]
[editable path="OVRFirstPerson"]