immersive-home/content/main_golf.tscn

130 lines
5.8 KiB
Plaintext
Raw Normal View History

2023-11-06 17:49:06 +02:00
[gd_scene load_steps=18 format=3 uid="uid://fap7m74qctpl"]
[ext_resource type="Script" path="res://content/main.gd" id="1_d7nko"]
[ext_resource type="PackedScene" uid="uid://c3kdssrmv84kv" path="res://content/ui/menu/menu.tscn" id="2_1ns4p"]
[ext_resource type="Script" path="res://content/raycast.gd" id="3_raorn"]
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="4_6x466"]
[ext_resource type="Material" uid="uid://bf5ina366dwm6" path="res://assets/materials/sky.material" id="5_o7oeh"]
[ext_resource type="PackedScene" uid="uid://ctltchlf2j2r4" path="res://addons/xr-simulator/XRSimulator.tscn" id="6_yj6uv"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m58yb"]
ao_enabled = true
[sub_resource type="BoxMesh" id="BoxMesh_ir3co"]
material = SubResource("StandardMaterial3D_m58yb")
size = Vector3(0.01, 0.01, 0.01)
[sub_resource type="Sky" id="Sky_vhymk"]
sky_material = ExtResource("5_o7oeh")
[sub_resource type="Environment" id="Environment_7ghp0"]
background_mode = 2
background_color = Color(0.466667, 0.47451, 0.462745, 0)
sky = SubResource("Sky_vhymk")
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.72
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_5qi0p"]
rough = true
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_i18hv"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_t7p2m"]
rough = true
[sub_resource type="SphereShape3D" id="SphereShape3D_wckr8"]
radius = 0.1
[sub_resource type="SphereMesh" id="SphereMesh_5b0e3"]
radius = 0.1
height = 0.2
[sub_resource type="BoxMesh" id="BoxMesh_4w3j6"]
size = Vector3(0.02, 1, 0.02)
[sub_resource type="BoxShape3D" id="BoxShape3D_huggw"]
size = Vector3(0.02, 1, 0.02)
[node name="Main" type="Node3D"]
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_d7nko")
[node name="XROrigin3D" type="XROrigin3D" parent="."]
[node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.798091, 0.311748)
[node name="XRControllerLeft" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.469893, 0.597213, -0.251112)
tracker = &"left_hand"
pose = &"aim"
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerLeft"]
mesh = SubResource("BoxMesh_ir3co")
[node name="Menu" parent="XROrigin3D/XRControllerLeft" instance=ExtResource("2_1ns4p")]
transform = Transform3D(-4.37114e-08, 0, -1, -0.707107, 0.707107, 3.09086e-08, 0.707107, 0.707107, -3.09086e-08, 0.183517, 0, -0.0534939)
[node name="XRControllerRight" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.488349, 0.559219, -0.2988)
tracker = &"right_hand"
pose = &"aim"
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerRight"]
mesh = SubResource("BoxMesh_ir3co")
[node name="Raycast" type="Node3D" parent="XROrigin3D/XRControllerRight" node_paths=PackedStringArray("ray")]
script = ExtResource("3_raorn")
ray = NodePath("RayCast3D")
[node name="RayCast3D" type="RayCast3D" parent="XROrigin3D/XRControllerRight/Raycast"]
transform = Transform3D(-2.58078e-11, 4.3714e-08, 1, 1, -4.37117e-08, 9.27469e-12, 4.37112e-08, 1, -4.3714e-08, 0, 0, 0)
target_position = Vector3(0, -5, 0)
[node name="RemoteTransform3D" type="RemoteTransform3D" parent="XROrigin3D/XRControllerRight"]
remote_path = NodePath("../../../Club (AnimatableBody3D)")
[node name="StartXR" parent="." instance=ExtResource("4_6x466")]
enable_passthrough = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_7ghp0")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
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
[node name="XRSimulator" parent="." instance=ExtResource("6_yj6uv")]
xr_origin = NodePath("../XROrigin3D")
[node name="Ground (StaticBody3D)" type="StaticBody3D" parent="."]
transform = Transform3D(1, -1.39636e-11, 0, 9.47997e-12, 1, 0, 0, 0, 1, 0, 0, 0)
physics_material_override = SubResource("PhysicsMaterial_5qi0p")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground (StaticBody3D)"]
transform = Transform3D(0.999999, -1.39631e-11, 0, 9.48108e-12, 0.999999, -4.54747e-13, 0, -4.54747e-13, 0.999999, 0, 0, 0)
shape = SubResource("WorldBoundaryShape3D_i18hv")
[node name="Ball (RigidBody3D)" type="RigidBody3D" parent="."]
transform = Transform3D(0.999997, -1.39633e-11, 0, 9.48364e-12, 0.999998, -1.81899e-12, 0, 5.91172e-12, 0.999998, 0.487249, 1.15211, -0.679336)
physics_material_override = SubResource("PhysicsMaterial_t7p2m")
angular_damp = 4.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ball (RigidBody3D)"]
shape = SubResource("SphereShape3D_wckr8")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ball (RigidBody3D)"]
transform = Transform3D(1, -1.39641e-11, 0, 9.47986e-12, 1, 0, 2.91038e-11, 0, 1, 0, 0, 0)
mesh = SubResource("SphereMesh_5b0e3")
[node name="Club (AnimatableBody3D)" type="AnimatableBody3D" parent="."]
transform = Transform3D(1, -1.39637e-11, 0, 9.47975e-12, 1, 0, 0, 0, 1, 0.488349, 0.559219, -0.2988)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Club (AnimatableBody3D)"]
transform = Transform3D(1, -0.000567105, -2.51786e-05, -2.51789e-05, 4.39913e-08, -0.999999, 0.000567105, 1, 2.97096e-08, 0.000972658, -0.00257713, -0.524774)
mesh = SubResource("BoxMesh_4w3j6")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Club (AnimatableBody3D)"]
transform = Transform3D(1, -0.000567105, -2.51788e-05, -2.51788e-05, 4.39918e-08, -1, 0.000567105, 1, 2.97127e-08, 0.000972658, -0.00257713, -0.524774)
shape = SubResource("BoxShape3D_huggw")