fix hand drag

This commit is contained in:
Nitwel 2024-04-25 16:16:14 +02:00
parent 570dda3791
commit 96a42dcb8a
3 changed files with 3 additions and 12 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=18 format=3 uid="uid://eecv28y6jxk4"] [gd_scene load_steps=17 format=3 uid="uid://eecv28y6jxk4"]
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"] [ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"]
[ext_resource type="Script" path="res://content/main.gd" id="1_uvrd4"] [ext_resource type="Script" path="res://content/main.gd" id="1_uvrd4"]
@ -33,8 +33,6 @@ ao_enabled = true
material = SubResource("StandardMaterial3D_m58yb") material = SubResource("StandardMaterial3D_m58yb")
size = Vector3(0.01, 0.01, 0.01) size = Vector3(0.01, 0.01, 0.01)
[sub_resource type="CylinderMesh" id="CylinderMesh_72c80"]
[node name="Main" type="Node3D"] [node name="Main" type="Node3D"]
transform = Transform3D(1, -0.000296142, 0.000270963, 0.000296143, 1, -4.5899e-06, -0.000270962, 4.67014e-06, 1, 0, 0, 0) transform = Transform3D(1, -0.000296142, 0.000270963, 0.000296143, 1, -4.5899e-06, -0.000270962, 4.67014e-06, 1, 0, 0, 0)
script = ExtResource("1_uvrd4") script = ExtResource("1_uvrd4")
@ -88,8 +86,4 @@ transform = Transform3D(0.5, 5.24309e-05, 0.000144384, -0.000139169, 0.353553, 0
[node name="Onboarding" parent="." instance=ExtResource("12_uq2nj")] [node name="Onboarding" parent="." instance=ExtResource("12_uq2nj")]
transform = Transform3D(1, -9.48098e-12, 0, 9.48098e-12, 1, 0, 0, 0, 1, -0.529594, 0.820154, -0.600147) transform = Transform3D(1, -9.48098e-12, 0, 9.48098e-12, 1, 0, 0, 0, 1, -0.529594, 0.820154, -0.600147)
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, -1.39635e-11, 0, 1.02449e-10, 1, 0, 0, 0, 1, 0.327865, -9.50548e-05, 0.44448)
mesh = SubResource("CylinderMesh_72c80")
[editable path="XROrigin3D/XRControllerLeft"] [editable path="XROrigin3D/XRControllerLeft"]

View File

@ -119,3 +119,4 @@ libraries = {
} }
[node name="Raycast" parent="." instance=ExtResource("4_n7lao")] [node name="Raycast" parent="." instance=ExtResource("4_n7lao")]
is_right = false

View File

@ -1,11 +1,10 @@
[gd_scene load_steps=10 format=3 uid="uid://lrehk38exd5n"] [gd_scene load_steps=9 format=3 uid="uid://lrehk38exd5n"]
[ext_resource type="Script" path="res://content/system/keyboard/keyboard.gd" id="1_maojw"] [ext_resource type="Script" path="res://content/system/keyboard/keyboard.gd" id="1_maojw"]
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_xdpwr"] [ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_xdpwr"]
[ext_resource type="Script" path="res://content/ui/components/grid_container/grid_container.gd" id="3_mx544"] [ext_resource type="Script" path="res://content/ui/components/grid_container/grid_container.gd" id="3_mx544"]
[ext_resource type="Script" path="res://content/functions/movable.gd" id="4_86fct"] [ext_resource type="Script" path="res://content/functions/movable.gd" id="4_86fct"]
[ext_resource type="Shader" path="res://assets/materials/glass.gdshader" id="5_0dbg6"] [ext_resource type="Shader" path="res://assets/materials/glass.gdshader" id="5_0dbg6"]
[ext_resource type="Script" path="res://content/functions/occludable.gd" id="6_y4sdl"]
[sub_resource type="BoxShape3D" id="BoxShape3D_k5ib7"] [sub_resource type="BoxShape3D" id="BoxShape3D_k5ib7"]
size = Vector3(0.86, 0.27, 0.02) size = Vector3(0.86, 0.27, 0.02)
@ -73,6 +72,3 @@ shape = SubResource("BoxShape3D_k5ib7")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
material_override = SubResource("ShaderMaterial_x72nd") material_override = SubResource("ShaderMaterial_x72nd")
mesh = SubResource("QuadMesh_88pdc") mesh = SubResource("QuadMesh_88pdc")
[node name="Occludable" type="Node" parent="."]
script = ExtResource("6_y4sdl")