From 8950c8bc532142c5e008faa230cf457c16d78e2b Mon Sep 17 00:00:00 2001 From: selim Date: Mon, 12 Jan 2026 20:34:33 +0100 Subject: [PATCH] ...... --- addons/godot-xr-tools/objects/DrawerOpener.gd | 42 +++++++ .../objects/DrawerOpener.gd.uid | 1 + .../objects/drawer_snap_zone.tscn | 16 +++ .../godot-xr-tools/objects/drawer_space.tscn | 91 +++++++++++++++ addons/godot-xr-tools/objects/key.tscn | 5 +- level.tscn | 105 ++++-------------- project.godot | 1 + 7 files changed, 177 insertions(+), 84 deletions(-) create mode 100644 addons/godot-xr-tools/objects/DrawerOpener.gd create mode 100644 addons/godot-xr-tools/objects/DrawerOpener.gd.uid create mode 100644 addons/godot-xr-tools/objects/drawer_snap_zone.tscn create mode 100644 addons/godot-xr-tools/objects/drawer_space.tscn diff --git a/addons/godot-xr-tools/objects/DrawerOpener.gd b/addons/godot-xr-tools/objects/DrawerOpener.gd new file mode 100644 index 0000000..d2b48db --- /dev/null +++ b/addons/godot-xr-tools/objects/DrawerOpener.gd @@ -0,0 +1,42 @@ +extends Node3D + +# Referenz zur SnapZone (das Schloss) +@export var snap_zone : XRToolsSnapZone + +# Einstellungen für die Bewegung +@export var slide_offset : Vector3 = Vector3(0.5, 0, 0) # 0.5 auf X +@export var animation_duration : float = 1.0 # Dauer in Sekunden + +# Wir merken uns, wo die Schublade am Anfang war +var start_position : Vector3 + +func _ready(): + # Startposition speichern (damit wir wissen, wo "zu" ist) + start_position = position + + if snap_zone: + # Signal verbinden: Wenn etwas reingelegt wird + snap_zone.has_picked_up.connect(_on_unlock) + # Optional: Wenn Schlüssel rausgenommen wird -> wieder zugehen? + snap_zone.has_dropped.connect(_on_lock) + else: + printerr("FEHLER: Bitte SnapZone im Inspektor zuweisen!") + +func _on_unlock(_object): + print("Schlüssel steckt! Schublade öffnet sich.") + move_drawer(start_position + slide_offset) + +func _on_lock(_object): + print("Schlüssel entfernt! Schublade schließt sich.") + move_drawer(start_position) + +func move_drawer(target_pos : Vector3): + # Erstelle einen Tween (Animation) + var tween = create_tween() + + # Damit es sich "mechanisch" aber weich anfühlt (Ease Out) + tween.set_ease(Tween.EASE_OUT) + tween.set_trans(Tween.TRANS_CUBIC) + + # Bewege "self" (also DrawerSpace) zur Zielposition + tween.tween_property(self, "position", target_pos, animation_duration) diff --git a/addons/godot-xr-tools/objects/DrawerOpener.gd.uid b/addons/godot-xr-tools/objects/DrawerOpener.gd.uid new file mode 100644 index 0000000..b79d770 --- /dev/null +++ b/addons/godot-xr-tools/objects/DrawerOpener.gd.uid @@ -0,0 +1 @@ +uid://yjjo1i1psf4g diff --git a/addons/godot-xr-tools/objects/drawer_snap_zone.tscn b/addons/godot-xr-tools/objects/drawer_snap_zone.tscn new file mode 100644 index 0000000..ccb9bbb --- /dev/null +++ b/addons/godot-xr-tools/objects/drawer_snap_zone.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=4 format=3 uid="uid://ddn0hta2sm7to"] + +[ext_resource type="PackedScene" uid="uid://ce7vysyvondf8" path="res://addons/godot-xr-tools/objects/snap_zone.tscn" id="1_1nyor"] +[ext_resource type="PackedScene" uid="uid://da2qgxxwwitl6" path="res://addons/godot-xr-tools/objects/highlight/highlight_ring.tscn" id="2_j2emh"] + +[sub_resource type="SphereShape3D" id="SphereShape3D_1nyor"] +radius = 0.3 + +[node name="DrawerSnapZone" instance=ExtResource("1_1nyor")] +snap_mode = 1 +snap_require = "Key" + +[node name="CollisionShape3D" parent="." index="0"] +shape = SubResource("SphereShape3D_1nyor") + +[node name="HighlightRing" parent="." index="2" instance=ExtResource("2_j2emh")] diff --git a/addons/godot-xr-tools/objects/drawer_space.tscn b/addons/godot-xr-tools/objects/drawer_space.tscn new file mode 100644 index 0000000..c88b945 --- /dev/null +++ b/addons/godot-xr-tools/objects/drawer_space.tscn @@ -0,0 +1,91 @@ +[gd_scene load_steps=7 format=4 uid="uid://dnyj8ht4ip0o3"] + +[ext_resource type="PackedScene" uid="uid://ddn0hta2sm7to" path="res://addons/godot-xr-tools/objects/drawer_snap_zone.tscn" id="1_v2ms8"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nw16t"] +resource_name = "wood" +albedo_color = Color(0.9529211, 0.79866743, 0.6600249, 1) +emission_enabled = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0ksnx"] +resource_name = "metal" +albedo_color = Color(0.8759255, 0.917687, 0.9258912, 1) +emission_enabled = true + +[sub_resource type="ArrayMesh" id="ArrayMesh_immfq"] +_surfaces = [{ +"aabb": AABB(0, 0.00039061916, -7.219114e-16, 0.1968, 0.05, 0.16399999), +"format": 34896613377, +"index_count": 102, +"index_data": PackedByteArray("AAABAAIAAgABAAMAAwABAAAAAwAEAAIABAADAAUABgAFAAMABQAHAAQAAgAEAAcABQAIAAcACAAJAAcAAwAKAAYACgAJAAYAAAAKAAMACgAHAAkAAgALAAAABwALAAIADAAKAAAAAAALAAwADQAHAAoACgAMAA0ADgALAAcADQAOAAcACwAPAAwACwAOAA8ADQAMABAAEAAMAA8AEAARAA0ADwASABAAEQAQABIADwAOABMAEwAOAA0AEwASAA8ADQARABMAEgATABEA"), +"name": "wood", +"primitive": 3, +"uv_scale": Vector4(0, 0, 0, 0), +"vertex_count": 20, +"vertex_data": PackedByteArray("AAD//wAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAP//AAD//wAA//8AAKedhEv//wAAV2KES///AAD///////8AAKederT//wAAV2J6tP//AAAAAP////8AAP////8AAAAAcRr//7sfAABxGv//Q+AAAI3l//9D4AAAjeX//7sfAABxGjIzux8AAHEaMjND4AAAjeUyM7sfAACN5TIzQ+AAAA==") +}, { +"aabb": AABB(0.0756, 0.01514062, 0.16399999, 0.045600004, 0.020499997, 0.0123), +"format": 34896613377, +"index_count": 30, +"index_data": PackedByteArray("AAABAAIAAgADAAAABAACAAEAAAADAAUAAQAGAAQABQAHAAAAAQAAAAcABwAFAAQABwAGAAEABAAGAAcA"), +"name": "metal", +"primitive": 3, +"uv_scale": Vector4(0, 0, 0, 0), +"vertex_count": 8, +"vertex_data": PackedByteArray("0yRl5v//AADTJJkZ//8AAAAAAAAAAAAAAAD//wAAAAD//wAAAAAAAP////8AAAAAK9uZGf//AAAr22Xm//8AAA==") +}] +blend_shape_mode = 0 + +[sub_resource type="ArrayMesh" id="ArrayMesh_i5h2f"] +resource_name = "desk_Mesh drawer" +_surfaces = [{ +"aabb": AABB(0, 0.00039061916, -7.219114e-16, 0.1968, 0.05, 0.16399999), +"attribute_data": PackedByteArray("/38bb/9/5pAAAOaQAAAbb///5pD/f+aQ087uhv//G28rse6G084Tef9/G28rsRN5/38bb6nqG2+p6uaQ/3/mkAAAKZH/fymR/3///wAA////f+aQVRXmkFUVG2//fxtv/3///ziN5p44jUHy/38pkf///////ymRxvJB8sby5p44jUHyOI3mnsby5p7G8kHyOI0bb3DdG29w3SSKOI0kisbyG2/G8iSKOI0kijiNG2/GciSKjiIkio4iG2/GchtvxnIbb8ZyJIo4DSSKOA0bbw=="), +"format": 34896613399, +"index_count": 102, +"index_data": PackedByteArray("AAABAAIAAgADAAAABAAFAAYABgAHAAQACAAGAAUABgAJAAcABQAKAAgACQALAAcACgALAAgACgAHAAsADAANAA4ADgAPAAwAEAARABIAEgATABAAFAAVABYAFgAXABQAGAAZABoAGQAYABsAGgAcABgAGwAdABkAGgAeABwAHgAdABwAHQAeAB8AHQAfABkAIAAhACIAIgAjACAAJAAlACYAJgAnACQAKAApACoAKgArACgALAAtAC4ALgAvACwAMAAxADIAMgAzADAA"), +"material": SubResource("StandardMaterial3D_nw16t"), +"name": "wood", +"primitive": 3, +"uv_scale": Vector4(15.496063, 14.913385, 0, 0), +"vertex_count": 52, +"vertex_data": PackedByteArray("AAD//wAA//8AAAAAAAD/////AAAAAP///////wAA/////wAA//8AgAAAAAD//wCAp52ES///AID///////8AgFdihEv//wCAp516tP//AIAAAP////8AgFdierT//wCAAAD//wAA/78AAP//////vwAAAAD///+/AAAAAAAA/7///wAAAAD//wAAAAAAAP//AAAAAP///////wAA////////AAAAAP+///8AAP///7//////////v/////8AAP+/AAD//////79xGv//ux//v3Ea//9D4P+/AAD//wAA/7//////////v/////8AAP+/jeX//0Pg/7+N5f//ux//v3EaMjND4P+/cRoyM7sf/7+N5TIzux//v43lMjND4P+/jeX//7sf/7+N5f//Q+D/v43lMjND4P+/jeUyM7sf/7+N5f//ux8AgI3lMjO7HwCAcRoyM7sfAIBxGv//ux8AgHEaMjO7H/+/cRoyM0Pg/79xGv//Q+D/v3Ea//+7H/+/cRr//0Pg//9xGjIzQ+D//43lMjND4P//jeX//0Pg////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3//P/9//z//f/8//3//P/9/AAD/fwAA/38AAP9/AAD///9/////f////3////9/////f////3////9/////f////3////9/////f////3//f////3////9/////f////3////9/////f////3////9/AAD/fwAA/38AAP9/AAD/f////3////9/////f///") +}, { +"aabb": AABB(0.0756, 0.01514062, 0.16399999, 0.045600004, 0.020499997, 0.0123), +"attribute_data": PackedByteArray("//+Wev//a4XP9saGz/Y7eThGxoYIPWuFCD2WejhGO3kktv//0rHC99/PwveMy///389HJNKxRyQktgocjMsKHIzLlnqMy2uFJLZrhSS2lno="), +"format": 34896613399, +"index_count": 30, +"index_data": PackedByteArray("AAABAAIAAgADAAAABAAFAAYABgAHAAQACAAJAAoACgALAAgADAANAA4ADgAPAAwAEAARABIAEgATABAA"), +"material": SubResource("StandardMaterial3D_0ksnx"), +"name": "metal", +"primitive": 3, +"uv_scale": Vector4(15.293098, 15.258188, 0, 0), +"vertex_count": 20, +"vertex_data": PackedByteArray("0yRl5v//CKzTJJkZ//8IrAAAAAAAAAisAAD//wAACKz//wAAAAAIrCvbmRn//wisK9tl5v//CKz/////AAAIrNMkZeb//0S5AAD//wAARLn/////AABEuSvbZeb//0S5//8AAAAARLkAAAAAAABEudMkmRn//0S5K9uZGf//RLkr22Xm//8AgCvbmRn//wCA0ySZGf//AIDTJGXm//8AgP9/////f////3////9/////fwAA/38AAP9/AAD/fwAA////f////3////9/////fwAA/38AAP9/AAD/fwAA/3//f////3////9/////f///") +}] +blend_shape_mode = 0 +shadow_mesh = SubResource("ArrayMesh_immfq") + +[sub_resource type="BoxShape3D" id="BoxShape3D_v2ms8"] +size = Vector3(0.5584717, 0.010925293, 0.46710205) + +[node name="DrawerSpace" type="Node3D"] + +[node name="Drawer" type="StaticBody3D" parent="."] +axis_lock_linear_x = true +axis_lock_linear_y = true +axis_lock_angular_x = true +axis_lock_angular_y = true +axis_lock_angular_z = true + +[node name="Mesh" type="MeshInstance3D" parent="Drawer"] +transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0) +mesh = SubResource("ArrayMesh_i5h2f") +skeleton = NodePath("") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Drawer"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29364014, 0.023040771, 0.25100708) +shape = SubResource("BoxShape3D_v2ms8") + +[node name="DrawerSnapZone" parent="." instance=ExtResource("1_v2ms8")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29571566, 0.064665645, 0.57312906) diff --git a/addons/godot-xr-tools/objects/key.tscn b/addons/godot-xr-tools/objects/key.tscn index 1a8cff9..d0353be 100644 --- a/addons/godot-xr-tools/objects/key.tscn +++ b/addons/godot-xr-tools/objects/key.tscn @@ -6,11 +6,12 @@ [sub_resource type="BoxShape3D" id="BoxShape3D_v3w8y"] size = Vector3(0.08, 0.025, 0.23) -[node name="Key" instance=ExtResource("1_7fb3n")] +[node name="Key" groups=["Key"] instance=ExtResource("1_7fb3n")] [node name="CollisionShape3D" parent="." index="0"] +transform = Transform3D(-4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 0, 0, 1, 0, 0, 0) shape = SubResource("BoxShape3D_v3w8y") [node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1"] -transform = Transform3D(0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, 0, 0, -0.11319941) +transform = Transform3D(-2.1855695e-09, 0.05, 0, -0.05, -2.1855695e-09, 0, 0, 0, 0.05, 5.275011e-06, 0, -0.1154753) mesh = ExtResource("2_b1854") diff --git a/level.tscn b/level.tscn index f7779bb..c8cb4ff 100644 --- a/level.tscn +++ b/level.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=149 format=4 uid="uid://dv2iwxsd3rqha"] +[gd_scene load_steps=147 format=4 uid="uid://dv2iwxsd3rqha"] [ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_8b0r0"] [ext_resource type="AudioStream" uid="uid://de8rodemmcmg1" path="res://How German Sounds To Non-Germans (mp3cut.net).mp3" id="1_fj6e6"] @@ -27,6 +27,8 @@ [ext_resource type="ArrayMesh" uid="uid://c66elxhdbvigk" path="res://assets/kenney/Models/OBJ format/lampRoundFloor.obj" id="15_v5j5c"] [ext_resource type="ArrayMesh" uid="uid://bdjnavkmitj58" path="res://assets/kenney/Models/OBJ format/lampRoundTable.obj" id="16_4c15r"] [ext_resource type="ArrayMesh" uid="uid://c1ekycr8j1haq" path="res://assets/kenney/Models/OBJ format/rugRound.obj" id="16_5pxul"] +[ext_resource type="PackedScene" uid="uid://dnyj8ht4ip0o3" path="res://addons/godot-xr-tools/objects/drawer_space.tscn" id="17_samc1"] +[ext_resource type="Script" uid="uid://yjjo1i1psf4g" path="res://addons/godot-xr-tools/objects/DrawerOpener.gd" id="18_oaehd"] [ext_resource type="ArrayMesh" uid="uid://bo8kbkqmwr41w" path="res://assets/kenney/Models/OBJ format/bedBunk.obj" id="20_42xju"] [ext_resource type="ArrayMesh" uid="uid://tvmiqe200vbu" path="res://assets/kenney/Models/OBJ format/table.obj" id="21_ilwjd"] [ext_resource type="ArrayMesh" uid="uid://bthlqrehl0rmn" path="res://assets/kenney/Models/OBJ format/chairCushion.obj" id="22_y3bce"] @@ -387,68 +389,6 @@ _surfaces = [{ blend_shape_mode = 0 shadow_mesh = SubResource("ArrayMesh_gb6cn") -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0ksnx"] -resource_name = "metal" -albedo_color = Color(0.8759255, 0.917687, 0.9258912, 1) -emission_enabled = true - -[sub_resource type="ArrayMesh" id="ArrayMesh_immfq"] -_surfaces = [{ -"aabb": AABB(0, 0.00039061916, -7.219114e-16, 0.1968, 0.05, 0.16399999), -"format": 34896613377, -"index_count": 102, -"index_data": PackedByteArray("AAABAAIAAgABAAMAAwABAAAAAwAEAAIABAADAAUABgAFAAMABQAHAAQAAgAEAAcABQAIAAcACAAJAAcAAwAKAAYACgAJAAYAAAAKAAMACgAHAAkAAgALAAAABwALAAIADAAKAAAAAAALAAwADQAHAAoACgAMAA0ADgALAAcADQAOAAcACwAPAAwACwAOAA8ADQAMABAAEAAMAA8AEAARAA0ADwASABAAEQAQABIADwAOABMAEwAOAA0AEwASAA8ADQARABMAEgATABEA"), -"name": "wood", -"primitive": 3, -"uv_scale": Vector4(0, 0, 0, 0), -"vertex_count": 20, -"vertex_data": PackedByteArray("AAD//wAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAP//AAD//wAA//8AAKedhEv//wAAV2KES///AAD///////8AAKederT//wAAV2J6tP//AAAAAP////8AAP////8AAAAAcRr//7sfAABxGv//Q+AAAI3l//9D4AAAjeX//7sfAABxGjIzux8AAHEaMjND4AAAjeUyM7sfAACN5TIzQ+AAAA==") -}, { -"aabb": AABB(0.0756, 0.01514062, 0.16399999, 0.045600004, 0.020499997, 0.0123), -"format": 34896613377, -"index_count": 30, -"index_data": PackedByteArray("AAABAAIAAgADAAAABAACAAEAAAADAAUAAQAGAAQABQAHAAAAAQAAAAcABwAFAAQABwAGAAEABAAGAAcA"), -"name": "metal", -"primitive": 3, -"uv_scale": Vector4(0, 0, 0, 0), -"vertex_count": 8, -"vertex_data": PackedByteArray("0yRl5v//AADTJJkZ//8AAAAAAAAAAAAAAAD//wAAAAD//wAAAAAAAP////8AAAAAK9uZGf//AAAr22Xm//8AAA==") -}] -blend_shape_mode = 0 - -[sub_resource type="ArrayMesh" id="ArrayMesh_2orkt"] -resource_name = "desk_Mesh drawer" -_surfaces = [{ -"aabb": AABB(0, 0.00039061916, -7.219114e-16, 0.1968, 0.05, 0.16399999), -"attribute_data": PackedByteArray("/38bb/9/5pAAAOaQAAAbb///5pD/f+aQ087uhv//G28rse6G084Tef9/G28rsRN5/38bb6nqG2+p6uaQ/3/mkAAAKZH/fymR/3///wAA////f+aQVRXmkFUVG2//fxtv/3///ziN5p44jUHy/38pkf///////ymRxvJB8sby5p44jUHyOI3mnsby5p7G8kHyOI0bb3DdG29w3SSKOI0kisbyG2/G8iSKOI0kijiNG2/GciSKjiIkio4iG2/GchtvxnIbb8ZyJIo4DSSKOA0bbw=="), -"format": 34896613399, -"index_count": 102, -"index_data": PackedByteArray("AAABAAIAAgADAAAABAAFAAYABgAHAAQACAAGAAUABgAJAAcABQAKAAgACQALAAcACgALAAgACgAHAAsADAANAA4ADgAPAAwAEAARABIAEgATABAAFAAVABYAFgAXABQAGAAZABoAGQAYABsAGgAcABgAGwAdABkAGgAeABwAHgAdABwAHQAeAB8AHQAfABkAIAAhACIAIgAjACAAJAAlACYAJgAnACQAKAApACoAKgArACgALAAtAC4ALgAvACwAMAAxADIAMgAzADAA"), -"material": SubResource("StandardMaterial3D_nw16t"), -"name": "wood", -"primitive": 3, -"uv_scale": Vector4(15.496063, 14.913385, 0, 0), -"vertex_count": 52, -"vertex_data": PackedByteArray("AAD//wAA//8AAAAAAAD/////AAAAAP///////wAA/////wAA//8AgAAAAAD//wCAp52ES///AID///////8AgFdihEv//wCAp516tP//AIAAAP////8AgFdierT//wCAAAD//wAA/78AAP//////vwAAAAD///+/AAAAAAAA/7///wAAAAD//wAAAAAAAP//AAAAAP///////wAA////////AAAAAP+///8AAP///7//////////v/////8AAP+/AAD//////79xGv//ux//v3Ea//9D4P+/AAD//wAA/7//////////v/////8AAP+/jeX//0Pg/7+N5f//ux//v3EaMjND4P+/cRoyM7sf/7+N5TIzux//v43lMjND4P+/jeX//7sf/7+N5f//Q+D/v43lMjND4P+/jeUyM7sf/7+N5f//ux8AgI3lMjO7HwCAcRoyM7sfAIBxGv//ux8AgHEaMjO7H/+/cRoyM0Pg/79xGv//Q+D/v3Ea//+7H/+/cRr//0Pg//9xGjIzQ+D//43lMjND4P//jeX//0Pg////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3//P/9//z//f/8//3//P/9/AAD/fwAA/38AAP9/AAD///9/////f////3////9/////f////3////9/////f////3////9/////f////3//f////3////9/////f////3////9/////f////3////9/AAD/fwAA/38AAP9/AAD/f////3////9/////f///") -}, { -"aabb": AABB(0.0756, 0.01514062, 0.16399999, 0.045600004, 0.020499997, 0.0123), -"attribute_data": PackedByteArray("//+Wev//a4XP9saGz/Y7eThGxoYIPWuFCD2WejhGO3kktv//0rHC99/PwveMy///389HJNKxRyQktgocjMsKHIzLlnqMy2uFJLZrhSS2lno="), -"format": 34896613399, -"index_count": 30, -"index_data": PackedByteArray("AAABAAIAAgADAAAABAAFAAYABgAHAAQACAAJAAoACgALAAgADAANAA4ADgAPAAwAEAARABIAEgATABAA"), -"material": SubResource("StandardMaterial3D_0ksnx"), -"name": "metal", -"primitive": 3, -"uv_scale": Vector4(15.293098, 15.258188, 0, 0), -"vertex_count": 20, -"vertex_data": PackedByteArray("0yRl5v//CKzTJJkZ//8IrAAAAAAAAAisAAD//wAACKz//wAAAAAIrCvbmRn//wisK9tl5v//CKz/////AAAIrNMkZeb//0S5AAD//wAARLn/////AABEuSvbZeb//0S5//8AAAAARLkAAAAAAABEudMkmRn//0S5K9uZGf//RLkr22Xm//8AgCvbmRn//wCA0ySZGf//AIDTJGXm//8AgP9/////f////3////9/////fwAA/38AAP9/AAD/fwAA////f////3////9/////fwAA/38AAP9/AAD/fwAA/3//f////3////9/////f///") -}] -blend_shape_mode = 0 -shadow_mesh = SubResource("ArrayMesh_immfq") - -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_aicyk"] -data = PackedVector3Array(0, 0.0504, 0, 0, 0.0004, 0, 0.1968, 0.0004, 0, 0.1968, 0.0004, 0, 0.1968, 0.0504, 0, 0, 0.0504, 0, 0.1968, 0.0004, 0.16399999, 0, 0.0004, 0.16399999, 0.121199995, 0.0150999995, 0.16399999, 0.121199995, 0.0150999995, 0.16399999, 0.1968, 0.0504, 0.16399999, 0.1968, 0.0004, 0.16399999, 0.0756, 0.0150999995, 0.16399999, 0.121199995, 0.0150999995, 0.16399999, 0, 0.0004, 0.16399999, 0.121199995, 0.0150999995, 0.16399999, 0.121199995, 0.0356, 0.16399999, 0.1968, 0.0504, 0.16399999, 0, 0.0004, 0.16399999, 0, 0.0504, 0.16399999, 0.0756, 0.0150999995, 0.16399999, 0.121199995, 0.0356, 0.16399999, 0.0756, 0.0356, 0.16399999, 0.1968, 0.0504, 0.16399999, 0, 0.0504, 0.16399999, 0.0756, 0.0356, 0.16399999, 0.0756, 0.0150999995, 0.16399999, 0, 0.0504, 0.16399999, 0.1968, 0.0504, 0.16399999, 0.0756, 0.0356, 0.16399999, 0, 0.0504, 0, 0, 0.0504, 0.16399999, 0, 0.0004, 0.16399999, 0, 0.0004, 0.16399999, 0, 0.0004, 0, 0, 0.0504, 0, 0.1968, 0.0004, 0, 0, 0.0004, 0, 0, 0.0004, 0.16399999, 0, 0.0004, 0.16399999, 0.1968, 0.0004, 0.16399999, 0.1968, 0.0004, 0, 0.1968, 0.0004, 0, 0.1968, 0.0004, 0.16399999, 0.1968, 0.0504, 0.16399999, 0.1968, 0.0504, 0.16399999, 0.1968, 0.0504, 0, 0.1968, 0.0004, 0, 0, 0.0504, 0.16399999, 0.020299999, 0.0504, 0.020299999, 0.020299999, 0.0504, 0.1437, 0.020299999, 0.0504, 0.020299999, 0, 0.0504, 0.16399999, 0, 0.0504, 0, 0.020299999, 0.0504, 0.1437, 0.1968, 0.0504, 0.16399999, 0, 0.0504, 0.16399999, 0, 0.0504, 0, 0.1968, 0.0504, 0, 0.020299999, 0.0504, 0.020299999, 0.020299999, 0.0504, 0.1437, 0.1765, 0.0504, 0.1437, 0.1968, 0.0504, 0.16399999, 0.1765, 0.0504, 0.1437, 0.1968, 0.0504, 0, 0.1968, 0.0504, 0.16399999, 0.1968, 0.0504, 0, 0.1765, 0.0504, 0.1437, 0.1765, 0.0504, 0.020299999, 0.1968, 0.0504, 0, 0.1765, 0.0504, 0.020299999, 0.020299999, 0.0504, 0.020299999, 0.020299999, 0.0104, 0.1437, 0.020299999, 0.0104, 0.020299999, 0.1765, 0.0104, 0.020299999, 0.1765, 0.0104, 0.020299999, 0.1765, 0.0104, 0.1437, 0.020299999, 0.0104, 0.1437, 0.1765, 0.0504, 0.020299999, 0.1765, 0.0504, 0.1437, 0.1765, 0.0104, 0.1437, 0.1765, 0.0104, 0.1437, 0.1765, 0.0104, 0.020299999, 0.1765, 0.0504, 0.020299999, 0.1765, 0.0504, 0.020299999, 0.1765, 0.0104, 0.020299999, 0.020299999, 0.0104, 0.020299999, 0.020299999, 0.0104, 0.020299999, 0.020299999, 0.0504, 0.020299999, 0.1765, 0.0504, 0.020299999, 0.020299999, 0.0104, 0.020299999, 0.020299999, 0.0104, 0.1437, 0.020299999, 0.0504, 0.1437, 0.020299999, 0.0504, 0.1437, 0.020299999, 0.0504, 0.020299999, 0.020299999, 0.0104, 0.020299999, 0.020299999, 0.0504, 0.1437, 0.020299999, 0.0104, 0.1437, 0.1765, 0.0104, 0.1437, 0.1765, 0.0104, 0.1437, 0.1765, 0.0504, 0.1437, 0.020299999, 0.0504, 0.1437, 0.0822, 0.0336, 0.17629999, 0.0822, 0.017199999, 0.17629999, 0.0756, 0.0150999995, 0.16399999, 0.0756, 0.0150999995, 0.16399999, 0.0756, 0.0356, 0.16399999, 0.0822, 0.0336, 0.17629999, 0.121199995, 0.0150999995, 0.16399999, 0.114599995, 0.017199999, 0.17629999, 0.114599995, 0.0336, 0.17629999, 0.114599995, 0.0336, 0.17629999, 0.121199995, 0.0356, 0.16399999, 0.121199995, 0.0150999995, 0.16399999, 0.0822, 0.0336, 0.17629999, 0.0756, 0.0356, 0.16399999, 0.121199995, 0.0356, 0.16399999, 0.121199995, 0.0356, 0.16399999, 0.114599995, 0.0336, 0.17629999, 0.0822, 0.0336, 0.17629999, 0.121199995, 0.0150999995, 0.16399999, 0.0756, 0.0150999995, 0.16399999, 0.0822, 0.017199999, 0.17629999, 0.0822, 0.017199999, 0.17629999, 0.114599995, 0.017199999, 0.17629999, 0.121199995, 0.0150999995, 0.16399999, 0.114599995, 0.0336, 0.17629999, 0.114599995, 0.017199999, 0.17629999, 0.0822, 0.017199999, 0.17629999, 0.0822, 0.017199999, 0.17629999, 0.0822, 0.0336, 0.17629999, 0.114599995, 0.0336, 0.17629999) - [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8b0r0"] data = PackedVector3Array(0.70449996, 0.049999997, -0.32999998, 0.6845, 0.049999997, -0.32999998, 0.6845, 0.049999997, -0.04, 0.6845, 0.049999997, -0.04, 0.70449996, 0.049999997, -0.04, 0.70449996, 0.049999997, -0.32999998, 0.7145, 0, -0.04, 0.6745, 0, -0.04, 0.6745, 0, 0, 0.6745, 0, 0, 0.7145, 0, 0, 0.7145, 0, -0.04, 0.7145, 0, -0.37, 0.7145, 0, -0.32999998, 0.7145, 0.32439998, -0.32999998, 0.7145, 0.35439998, -0.37, 0.7145, 0, -0.37, 0.7145, 0.32439998, -0.32999998, 0.7145, 0.35439998, -0.37, 0.7145, 0.32439998, -0.32999998, 0.7145, 0.32439998, -0.04, 0.7145, 0.35439998, 0, 0.7145, 0.35439998, -0.37, 0.7145, 0.32439998, -0.04, 0.7145, 0.35439998, 0, 0.7145, 0.32439998, -0.04, 0.7145, 0, -0.04, 0.7145, 0, -0.04, 0.7145, 0, 0, 0.7145, 0.35439998, 0, 0.01, 0.32439998, -0.32999998, 0, 0.32439998, -0.32999998, 0, 0.32439998, -0.04, 0, 0.32439998, -0.04, 0.01, 0.32439998, -0.04, 0.01, 0.32439998, -0.32999998, 0.04, 0, -0.37, 0, 0, -0.37, 0, 0, -0.32999998, 0, 0, -0.32999998, 0.04, 0, -0.32999998, 0.04, 0, -0.37, 0.04, 0, -0.32999998, 0.04, 0, -0.35999998, 0.04, 0, -0.37, 0.04, 0, -0.32999998, 0.04, 0, -0.34, 0.04, 0, -0.35999998, 0.6745, 0, -0.35999998, 0.04, 0, -0.35999998, 0.04, 0, -0.34, 0.04, 0, -0.34, 0.6745, 0, -0.34, 0.6745, 0, -0.35999998, 0.6745, 0, -0.35999998, 0.6745, 0, -0.34, 0.7145, 0, -0.37, 0.7145, 0, -0.37, 0.6745, 0, -0.37, 0.6745, 0, -0.35999998, 0.6745, 0, -0.34, 0.6745, 0, -0.32999998, 0.7145, 0, -0.37, 0.6745, 0, -0.32999998, 0.7145, 0, -0.32999998, 0.7145, 0, -0.37, 0.04, 0, -0.04, 0, 0, -0.04, 0, 0, 0, 0, 0, 0, 0.04, 0, 0, 0.04, 0, -0.04, 0.6745, 0.32439998, -0.04, 0.6745, 0.32439998, 0, 0.6745, 0, 0, 0.6745, 0, 0, 0.6745, 0, -0.04, 0.6745, 0.32439998, -0.04, 0.7245, 0.38439998, 0.01, -0.01, 0.38439998, 0.01, -0.01, 0.38439998, -0.38, -0.01, 0.38439998, -0.38, 0.7245, 0.38439998, -0.38, 0.7245, 0.38439998, 0.01, 0, 0, -0.04, 0, 0.32439998, -0.04, 0, 0, 0, 0, 0.35439998, 0, 0, 0, 0, 0, 0.32439998, -0.04, 0, 0.32439998, -0.04, 0, 0.35439998, -0.37, 0, 0.35439998, 0, 0, 0.32439998, -0.04, 0, 0.32439998, -0.32999998, 0, 0.35439998, -0.37, 0, 0.32439998, -0.32999998, 0, 0, -0.32999998, 0, 0.35439998, -0.37, 0, 0, -0.32999998, 0, 0, -0.37, 0, 0.35439998, -0.37, 0.7245, 0.38439998, 0.01, 0.7245, 0.35439998, 0.01, -0.01, 0.35439998, 0.01, -0.01, 0.35439998, 0.01, -0.01, 0.38439998, 0.01, 0.7245, 0.38439998, 0.01, -0.01, 0.38439998, -0.38, -0.01, 0.38439998, 0.01, -0.01, 0.35439998, 0.01, -0.01, 0.35439998, 0.01, -0.01, 0.35439998, -0.38, -0.01, 0.38439998, -0.38, -0.01, 0.35439998, -0.38, -0.01, 0.35439998, 0.01, 0, 0.35439998, -0.37, 0, 0.35439998, -0.37, 0.7245, 0.35439998, -0.38, -0.01, 0.35439998, -0.38, 0, 0.35439998, 0, 0, 0.35439998, -0.37, -0.01, 0.35439998, 0.01, 0, 0.35439998, -0.37, 0.7145, 0.35439998, -0.37, 0.7245, 0.35439998, -0.38, -0.01, 0.35439998, 0.01, 0.7245, 0.35439998, 0.01, 0, 0.35439998, 0, 0.7145, 0.35439998, -0.37, 0.7145, 0.35439998, 0, 0.7245, 0.35439998, -0.38, 0.7245, 0.35439998, 0.01, 0.7145, 0.35439998, 0, 0, 0.35439998, 0, 0.7245, 0.35439998, 0.01, 0.7245, 0.35439998, -0.38, 0.7145, 0.35439998, 0, 0.7245, 0.35439998, -0.38, 0.7245, 0.35439998, 0.01, 0.7245, 0.38439998, 0.01, 0.7245, 0.38439998, 0.01, 0.7245, 0.38439998, -0.38, 0.7245, 0.35439998, -0.38, -0.01, 0.38439998, -0.38, -0.01, 0.35439998, -0.38, 0.7245, 0.35439998, -0.38, 0.7245, 0.35439998, -0.38, 0.7245, 0.38439998, -0.38, -0.01, 0.38439998, -0.38, 0.03, 0.049999997, -0.32999998, 0.01, 0.049999997, -0.32999998, 0.01, 0.049999997, -0.04, 0.01, 0.049999997, -0.04, 0.03, 0.049999997, -0.04, 0.03, 0.049999997, -0.32999998, 0.6845, 0.32439998, -0.32999998, 0.6845, 0.32439998, -0.04, 0.6845, 0.049999997, -0.04, 0.6845, 0.049999997, -0.04, 0.6845, 0.049999997, -0.32999998, 0.6845, 0.32439998, -0.32999998, 0.7145, 0, -0.32999998, 0.6745, 0, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.7145, 0.32439998, -0.32999998, 0.7145, 0, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.70449996, 0.32439998, -0.32999998, 0.7145, 0.32439998, -0.32999998, 0.6845, 0.049999997, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.6745, 0, -0.32999998, 0.6745, 0, -0.32999998, 0.6745, 0.32439998, -0.32999998, 0.6845, 0.049999997, -0.32999998, 0.6745, 0.32439998, -0.32999998, 0.6845, 0.32439998, -0.32999998, 0.6845, 0.049999997, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.70449996, 0.049999997, -0.04, 0.70449996, 0.32439998, -0.04, 0.70449996, 0.32439998, -0.04, 0.70449996, 0.32439998, -0.32999998, 0.70449996, 0.049999997, -0.32999998, 0.6745, 0, -0.04, 0.7145, 0, -0.04, 0.6845, 0.049999997, -0.04, 0.6845, 0.049999997, -0.04, 0.6745, 0.32439998, -0.04, 0.6745, 0, -0.04, 0.6845, 0.049999997, -0.04, 0.6845, 0.32439998, -0.04, 0.6745, 0.32439998, -0.04, 0.70449996, 0.049999997, -0.04, 0.6845, 0.049999997, -0.04, 0.7145, 0, -0.04, 0.7145, 0, -0.04, 0.7145, 0.32439998, -0.04, 0.70449996, 0.049999997, -0.04, 0.7145, 0.32439998, -0.04, 0.70449996, 0.32439998, -0.04, 0.70449996, 0.049999997, -0.04, 0, 0.35439998, -0.37, 0, 0, -0.37, 0.04, 0, -0.37, 0.04, 0, -0.37, 0.04, 0.32439998, -0.37, 0, 0.35439998, -0.37, 0.04, 0.32439998, -0.37, 0.6745, 0.32439998, -0.37, 0, 0.35439998, -0.37, 0.7145, 0.35439998, -0.37, 0, 0.35439998, -0.37, 0.6745, 0.32439998, -0.37, 0.7145, 0, -0.37, 0.7145, 0.35439998, -0.37, 0.6745, 0.32439998, -0.37, 0.6745, 0.32439998, -0.37, 0.6745, 0, -0.37, 0.7145, 0, -0.37, 0.04, 0, -0.04, 0.04, 0, 0, 0.04, 0.2444, 0, 0.04, 0.2444, 0, 0.04, 0.2444, -0.04, 0.04, 0, -0.04, 0.04, 0, -0.32999998, 0, 0, -0.32999998, 0.03, 0.049999997, -0.32999998, 0.03, 0.049999997, -0.32999998, 0.04, 0.32439998, -0.32999998, 0.04, 0, -0.32999998, 0.03, 0.049999997, -0.32999998, 0.03, 0.32439998, -0.32999998, 0.04, 0.32439998, -0.32999998, 0.01, 0.049999997, -0.32999998, 0.03, 0.049999997, -0.32999998, 0, 0, -0.32999998, 0, 0, -0.32999998, 0, 0.32439998, -0.32999998, 0.01, 0.049999997, -0.32999998, 0, 0.32439998, -0.32999998, 0.01, 0.32439998, -0.32999998, 0.01, 0.049999997, -0.32999998, 0.01, 0.32439998, -0.32999998, 0.01, 0.32439998, -0.04, 0.01, 0.049999997, -0.04, 0.01, 0.049999997, -0.04, 0.01, 0.049999997, -0.32999998, 0.01, 0.32439998, -0.32999998, 0, 0, -0.04, 0.04, 0, -0.04, 0.01, 0.049999997, -0.04, 0.01, 0.049999997, -0.04, 0, 0.32439998, -0.04, 0, 0, -0.04, 0.01, 0.049999997, -0.04, 0.01, 0.32439998, -0.04, 0, 0.32439998, -0.04, 0.03, 0.049999997, -0.04, 0.01, 0.049999997, -0.04, 0.04, 0, -0.04, 0.04, 0, -0.04, 0.04, 0.2444, -0.04, 0.03, 0.049999997, -0.04, 0.04, 0.2444, -0.04, 0.03, 0.2444, -0.04, 0.03, 0.049999997, -0.04, 0.6745, 0.32439998, -0.37, 0.6745, 0.32439998, -0.35999998, 0.6745, 0, -0.35999998, 0.6745, 0, -0.35999998, 0.6745, 0, -0.37, 0.6745, 0.32439998, -0.37, 0.04, 0, -0.37, 0.04, 0, -0.35999998, 0.04, 0.32439998, -0.35999998, 0.04, 0.32439998, -0.35999998, 0.04, 0.32439998, -0.37, 0.04, 0, -0.37, 0.6745, 0.32439998, -0.37, 0.04, 0.32439998, -0.37, 0.04, 0.32439998, -0.35999998, 0.04, 0.32439998, -0.35999998, 0.6745, 0.32439998, -0.35999998, 0.6745, 0.32439998, -0.37, 0.04, 0.32439998, -0.35999998, 0.04, 0, -0.35999998, 0.6745, 0, -0.35999998, 0.6745, 0, -0.35999998, 0.6745, 0.32439998, -0.35999998, 0.04, 0.32439998, -0.35999998, 0.6745, 0.32439998, -0.34, 0.6745, 0, -0.34, 0.04, 0, -0.34, 0.04, 0, -0.34, 0.04, 0.32439998, -0.34, 0.6745, 0.32439998, -0.34, 0.6745, 0.32439998, -0.34, 0.6745, 0.32439998, -0.32999998, 0.6745, 0, -0.32999998, 0.6745, 0, -0.32999998, 0.6745, 0, -0.34, 0.6745, 0.32439998, -0.34, 0.04, 0, -0.34, 0.04, 0, -0.32999998, 0.04, 0.32439998, -0.32999998, 0.04, 0.32439998, -0.32999998, 0.04, 0.32439998, -0.34, 0.04, 0, -0.34, 0.2368, 0.32439998, -0.16399999, 0.04, 0.32439998, -0.16399999, 0.04, 0.32439998, 0, 0.04, 0.32439998, 0, 0.2368, 0.32439998, 0, 0.2368, 0.32439998, -0.16399999, 0.7145, 0.32439998, -0.32999998, 0.70449996, 0.32439998, -0.32999998, 0.70449996, 0.32439998, -0.04, 0.70449996, 0.32439998, -0.04, 0.7145, 0.32439998, -0.04, 0.7145, 0.32439998, -0.32999998, 0.03, 0.049999997, -0.32999998, 0.03, 0.049999997, -0.04, 0.03, 0.2444, -0.04, 0.03, 0.2444, -0.04, 0.03, 0.2444, -0.19399999, 0.03, 0.049999997, -0.32999998, 0.03, 0.2444, -0.19399999, 0.03, 0.32439998, -0.19399999, 0.03, 0.049999997, -0.32999998, 0.03, 0.32439998, -0.19399999, 0.03, 0.32439998, -0.32999998, 0.03, 0.049999997, -0.32999998, 0.6845, 0.32439998, -0.32999998, 0.6745, 0.32439998, -0.32999998, 0.6745, 0.32439998, -0.04, 0.6745, 0.32439998, -0.04, 0.6845, 0.32439998, -0.04, 0.6845, 0.32439998, -0.32999998, 0.6745, 0.32439998, 0, 0.6745, 0.32439998, -0.04, 0.6745, 0.32439998, -0.32999998, 0.6745, 0.32439998, 0, 0.6745, 0.32439998, -0.32999998, 0.6745, 0.32439998, -0.34, 0.2668, 0.32439998, 0, 0.6745, 0.32439998, 0, 0.6745, 0.32439998, -0.34, 0.2668, 0.32439998, -0.19399999, 0.2668, 0.32439998, 0, 0.6745, 0.32439998, -0.34, 0.04, 0.32439998, -0.32999998, 0.2668, 0.32439998, -0.19399999, 0.6745, 0.32439998, -0.34, 0.6745, 0.32439998, -0.34, 0.04, 0.32439998, -0.34, 0.04, 0.32439998, -0.32999998, 0.03, 0.32439998, -0.19399999, 0.2668, 0.32439998, -0.19399999, 0.04, 0.32439998, -0.32999998, 0.04, 0.32439998, -0.32999998, 0.03, 0.32439998, -0.32999998, 0.03, 0.32439998, -0.19399999, 0.03, 0.32439998, -0.19399999, 0.03, 0.2444, -0.19399999, 0.2668, 0.2444, -0.19399999, 0.2668, 0.2444, -0.19399999, 0.2668, 0.32439998, -0.19399999, 0.03, 0.32439998, -0.19399999, 0.2668, 0.2444, -0.19399999, 0.2668, 0.2444, 0, 0.2668, 0.32439998, 0, 0.2668, 0.32439998, 0, 0.2668, 0.32439998, -0.19399999, 0.2668, 0.2444, -0.19399999, 0.2368, 0.2744, 0, 0.04, 0.2744, 0, 0.04, 0.2744, -0.04, 0.04, 0.2744, -0.04, 0.04, 0.2744, -0.16399999, 0.2368, 0.2744, 0, 0.04, 0.2744, -0.16399999, 0.2368, 0.2744, -0.16399999, 0.2368, 0.2744, 0, 0.2668, 0.2444, -0.19399999, 0.03, 0.2444, -0.19399999, 0.03, 0.2444, -0.04, 0.03, 0.2444, -0.04, 0.04, 0.2444, -0.04, 0.2668, 0.2444, -0.19399999, 0.04, 0.2444, -0.04, 0.04, 0.2444, 0, 0.2668, 0.2444, -0.19399999, 0.04, 0.2444, 0, 0.2668, 0.2444, 0, 0.2668, 0.2444, -0.19399999, 0.04, 0.2744, -0.04, 0.04, 0.2744, 0, 0.04, 0.32439998, 0, 0.04, 0.32439998, 0, 0.04, 0.32439998, -0.16399999, 0.04, 0.2744, -0.04, 0.04, 0.32439998, -0.16399999, 0.04, 0.2744, -0.16399999, 0.04, 0.2744, -0.04, 0.2368, 0.32439998, -0.16399999, 0.2368, 0.32439998, 0, 0.2368, 0.2744, 0, 0.2368, 0.2744, 0, 0.2368, 0.2744, -0.16399999, 0.2368, 0.32439998, -0.16399999, 0.2368, 0.32439998, -0.16399999, 0.2368, 0.2744, -0.16399999, 0.04, 0.2744, -0.16399999, 0.04, 0.2744, -0.16399999, 0.04, 0.32439998, -0.16399999, 0.2368, 0.32439998, -0.16399999, 0.7145, 0.35439998, 0, 0.7145, 0, 0, 0.6745, 0, 0, 0.6745, 0, 0, 0.6745, 0.32439998, 0, 0.7145, 0.35439998, 0, 0.6745, 0.32439998, 0, 0.2368, 0.32439998, 0, 0.7145, 0.35439998, 0, 0.2368, 0.32439998, 0, 0.6745, 0.32439998, 0, 0.2668, 0.32439998, 0, 0.2368, 0.32439998, 0, 0.04, 0.32439998, 0, 0.7145, 0.35439998, 0, 0.2368, 0.2744, 0, 0.2368, 0.32439998, 0, 0.2668, 0.32439998, 0, 0, 0.35439998, 0, 0.7145, 0.35439998, 0, 0.04, 0.32439998, 0, 0.2368, 0.2744, 0, 0.2668, 0.32439998, 0, 0.2668, 0.2444, 0, 0, 0.35439998, 0, 0.04, 0.32439998, 0, 0.04, 0.2744, 0, 0.2668, 0.2444, 0, 0.04, 0.2444, 0, 0.2368, 0.2744, 0, 0.04, 0.2744, 0, 0.2368, 0.2744, 0, 0.04, 0.2444, 0, 0, 0.35439998, 0, 0.04, 0.2744, 0, 0.04, 0.2444, 0, 0, 0, 0, 0, 0.35439998, 0, 0.04, 0.2444, 0, 0.04, 0.2444, 0, 0.04, 0, 0, 0, 0, 0) @@ -925,11 +865,6 @@ mesh = SubResource("ArrayMesh_km5ld") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.53500366, 1.2422104, -0.0017089471) shape = SubResource("BoxShape3D_qw2y7") -[node name="Wheel" parent="." instance=ExtResource("29_aoqsc")] -transform = Transform3D(-4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0, 1, -9.036649, 0.88554823, -3.9241073) -continuous_cd = true -linear_damp = 0.2 - [node name="WheelSpace" parent="." instance=ExtResource("29_mleqk")] transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.126746, 1.1701485, -0.0529553) @@ -1075,28 +1010,33 @@ transform = Transform3D(3.25, 0, 0, 0, 3.25, 0, 0, 0, 3.25, -1.8639216, 0.241593 mesh = ExtResource("11_qw2y7") [node name="Desk" type="StaticBody3D" parent="."] -transform = Transform3D(-1.3113416e-07, 0, 3, 0, 3, 0, -3, 0, -1.3113416e-07, -8.8, -0.03327906, -3.5) +transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -8.8, -0.03327906, -3.5) [node name="Mesh" type="MeshInstance3D" parent="Desk"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00016260147, 0, 1.9311905e-05) +transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0.00016260147, 0, 1.9311905e-05) mesh = SubResource("ArrayMesh_8cye3") skeleton = NodePath("") -[node name="Drawer" type="StaticBody3D" parent="Desk/Mesh"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.04, 0.274, -0.16) - -[node name="Mesh" type="MeshInstance3D" parent="Desk/Mesh/Drawer"] -mesh = SubResource("ArrayMesh_2orkt") -skeleton = NodePath("") - -[node name="Collision" type="CollisionShape3D" parent="Desk/Mesh/Drawer"] -shape = SubResource("ConcavePolygonShape3D_aicyk") - [node name="Collision" type="CollisionShape3D" parent="Desk"] +transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0) shape = SubResource("ConcavePolygonShape3D_8b0r0") +[node name="DrawerSpace" parent="Desk" node_paths=PackedStringArray("snap_zone") instance=ExtResource("17_samc1")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.1215415, 0.81753486, -0.46307564) +script = ExtResource("18_oaehd") +snap_zone = NodePath("DrawerSnapZone") +slide_offset = Vector3(0, 0, 0.48) + +[node name="Wheel" parent="Desk/DrawerSpace" instance=ExtResource("29_aoqsc")] +transform = Transform3D(1.9106855e-15, 4.371139e-08, -1, 1, -4.371139e-08, 0, -4.371139e-08, -1, -4.371139e-08, 0.3025658, 0.10129243, 0.22642708) +freeze = true +freeze_mode = 0 +continuous_cd = true +linear_damp = 0.4 +release_mode = 0 + [node name="Codepad" type="StaticBody3D" parent="."] -transform = Transform3D(-0.2, 0, -1.7484556e-08, 0, 0.2, 0, 1.7484556e-08, 0, -0.2, 9.9, 1.5, 1.5) +transform = Transform3D(-0.2, 0, -1.7484556e-08, 0, 0.2, 0, 1.7484556e-08, 0, -0.2, 9.9, 1.5, 1.3363996) [node name="CodepadNode" parent="Codepad" instance=ExtResource("7_n6hdu")] @@ -1475,7 +1415,8 @@ shape = SubResource("ConcavePolygonShape3D_0mnfp") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.20753, 0.0072422326, -6.3363953) collision_layer = 5 continuous_cd = true -linear_damp = 0.2 +linear_damp = 0.4 [editable path="Player"] [editable path="WheelSpace"] +[editable path="Desk/DrawerSpace"] diff --git a/project.godot b/project.godot index 7937e1e..adfed6e 100644 --- a/project.godot +++ b/project.godot @@ -28,6 +28,7 @@ enabled=PackedStringArray("res://addons/godot-xr-tools/plugin.cfg") [global_group] Wheel="" +Key="" [rendering]