From 22112e11c7a01481443897d176998b6bf74fca36 Mon Sep 17 00:00:00 2001 From: selim Date: Mon, 12 Jan 2026 19:05:16 +0100 Subject: [PATCH] ..... --- DoorLock.gd | 37 ++++ DoorLock.gd.uid | 1 + .../godot-xr-tools/objects/door_handle.tscn | 13 ++ .../godot-xr-tools/objects/wheel_space.tscn | 16 +- level.tscn | 192 ++++++++++-------- player.tscn | 2 +- 6 files changed, 164 insertions(+), 97 deletions(-) create mode 100644 DoorLock.gd create mode 100644 DoorLock.gd.uid create mode 100644 addons/godot-xr-tools/objects/door_handle.tscn diff --git a/DoorLock.gd b/DoorLock.gd new file mode 100644 index 0000000..df9e254 --- /dev/null +++ b/DoorLock.gd @@ -0,0 +1,37 @@ +extends Node3D + +# Referenz zur Tür (der RigidBody) +@export var door_rigidbody : RigidBody3D + +# Referenz zur SnapZone (der "WheelSpace") +@export var wheel_snap_zone : XRToolsSnapZone + +func _ready(): + # Wir verbinden das Signal der SnapZone + if wheel_snap_zone: + # "has_picked_up" wird gefeuert, wenn die Zone ein Objekt fängt + wheel_snap_zone.has_picked_up.connect(_on_wheel_inserted) + + # Optional: Wenn man das Rad wieder rausnimmt, soll die Tür wieder zu gehen? + # Dann aktiviere die nächste Zeile: + # wheel_snap_zone.has_dropped.connect(_on_wheel_removed) + + # Sicherstellen, dass die Tür am Start zu ist + lock_door() + +func _on_wheel_inserted(_object): + print("Rad eingesetzt! Tür wird entriegelt.") + unlock_door() + +func _on_wheel_removed(_object): + print("Rad entfernt! Tür wird verriegelt.") + lock_door() + +func unlock_door(): + if door_rigidbody: + door_rigidbody.freeze = false # Physik an -> Tür beweglich + # Optional: Schlafeinschlafen verhindern + +func lock_door(): + if door_rigidbody: + door_rigidbody.freeze = true # Physik aus -> Tür fest wie eine Wand diff --git a/DoorLock.gd.uid b/DoorLock.gd.uid new file mode 100644 index 0000000..d80c720 --- /dev/null +++ b/DoorLock.gd.uid @@ -0,0 +1 @@ +uid://bynhdxidxy23t diff --git a/addons/godot-xr-tools/objects/door_handle.tscn b/addons/godot-xr-tools/objects/door_handle.tscn new file mode 100644 index 0000000..a8457d3 --- /dev/null +++ b/addons/godot-xr-tools/objects/door_handle.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=3 format=3 uid="uid://bckvyatytdncj"] + +[ext_resource type="PackedScene" uid="uid://c8l60rnugru40" path="res://addons/godot-xr-tools/objects/pickable.tscn" id="1_mpmja"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_kaqxa"] +size = Vector3(0.2, 0.2, 0.2) + +[node name="DoorHandle" instance=ExtResource("1_mpmja")] + +[node name="CollisionShape3D" parent="." index="0"] +shape = SubResource("BoxShape3D_kaqxa") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1"] diff --git a/addons/godot-xr-tools/objects/wheel_space.tscn b/addons/godot-xr-tools/objects/wheel_space.tscn index 41e99cd..51169ab 100644 --- a/addons/godot-xr-tools/objects/wheel_space.tscn +++ b/addons/godot-xr-tools/objects/wheel_space.tscn @@ -2,14 +2,14 @@ [ext_resource type="PackedScene" uid="uid://c31oleh3x06ku" path="res://addons/godot-xr-tools/objects/wheel_snap_zone.tscn" id="1_ttqdy"] -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0jfqd"] -albedo_color = Color(2.2862106e-07, 0.29880682, 0.29880682, 1) - [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ttqdy"] -albedo_color = Color(1.0829419e-06, 0.3589771, 0.3589772, 1) +albedo_color = Color(0.54901963, 0.58431375, 0.59607846, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qy0yp"] -albedo_color = Color(0, 0.29803923, 0.29803923, 1) +albedo_color = Color(0.54901963, 0.58431375, 0.59607846, 1) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v36v7"] +albedo_color = Color(0.54901963, 0.58431375, 0.59607846, 1) [node name="WheelSpace" type="Node3D"] @@ -18,7 +18,7 @@ transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0 [node name="CSGBox3D" type="CSGBox3D" parent="CSGCombiner3D"] size = Vector3(0.35, 0.35, 0.15) -material = SubResource("StandardMaterial3D_0jfqd") +material = SubResource("StandardMaterial3D_ttqdy") [node name="CSGCylinder3D" type="CSGCylinder3D" parent="CSGCombiner3D"] transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0.059342176) @@ -26,14 +26,14 @@ operation = 2 radius = 0.105 height = 0.035 sides = 60 -material = SubResource("StandardMaterial3D_ttqdy") +material = SubResource("StandardMaterial3D_qy0yp") [node name="CSGCylinder3D2" type="CSGCylinder3D" parent="CSGCombiner3D"] transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0.0604029) radius = 0.012 height = 0.035 sides = 60 -material = SubResource("StandardMaterial3D_qy0yp") +material = SubResource("StandardMaterial3D_v36v7") [node name="WheelSnapZone" parent="." instance=ExtResource("1_ttqdy")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.10869917, 0, 0) diff --git a/level.tscn b/level.tscn index 3514621..f7779bb 100644 --- a/level.tscn +++ b/level.tscn @@ -7,14 +7,17 @@ [ext_resource type="PackedScene" uid="uid://ctltchlf2j2r4" path="res://addons/xr-simulator/XRSimulator.tscn" id="3_f2txt"] [ext_resource type="PackedScene" uid="uid://dw4a062ro7owt" path="res://assets/kenney/Models/DAE format/floorFull.dae" id="4_8b0r0"] [ext_resource type="ArrayMesh" uid="uid://b1655snpfcof2" path="res://assets/kenney/Models/OBJ format/floorFull.obj" id="4_v5j5c"] +[ext_resource type="PackedScene" uid="uid://bckvyatytdncj" path="res://addons/godot-xr-tools/objects/door_handle.tscn" id="7_0mnfp"] [ext_resource type="Texture2D" uid="uid://hikj246mo547" path="res://assets/tippi/Models/GLB format/Textures/colormap.png" id="7_2orkt"] [ext_resource type="Script" uid="uid://byjnev7cbqsw4" path="res://HeavyObject.gd" id="7_mleqk"] [ext_resource type="PackedScene" uid="uid://besbaulstjepp" path="res://assets/keypad/low_poly_keypad.glb" id="7_n6hdu"] [ext_resource type="ArrayMesh" uid="uid://8blgq6p7m8ga" path="res://assets/kenney/Models/OBJ format/bookcaseClosedWide.obj" id="8_mleqk"] +[ext_resource type="ArrayMesh" uid="uid://dlp85x77qsc7w" path="res://assets/kenney/Models/OBJ format/doorwayOpen.obj" id="8_uuqa8"] [ext_resource type="ArrayMesh" uid="uid://c8q573l1j7s6g" path="res://assets/kenney/Models/OBJ format/books.obj" id="9_ut2i6"] [ext_resource type="ArrayMesh" uid="uid://cjducj2eghhoq" path="res://assets/kenney/Models/OBJ format/plantSmall2.obj" id="10_0mnfp"] [ext_resource type="Texture2D" uid="uid://bdnh5ako4yfpr" path="res://assets/tippi/gekritzel.png" id="10_aicyk"] [ext_resource type="PackedScene" uid="uid://bjgw42ioi0p1m" path="res://assets/tippi/Models/GLB format/tower-hexagon-roof.glb" id="10_h6smj"] +[ext_resource type="Script" uid="uid://bynhdxidxy23t" path="res://DoorLock.gd" id="10_qw2y7"] [ext_resource type="Texture2D" uid="uid://dstv63bc0f6tp" path="res://assets/tippi/passwort.png" id="11_8b0r0"] [ext_resource type="ArrayMesh" uid="uid://c5pdjdvw4oog1" path="res://assets/kenney/Models/OBJ format/plantSmall1.obj" id="11_qw2y7"] [ext_resource type="PackedScene" uid="uid://bx2bo1fh2ins8" path="res://assets/tippi/Models/FBX format/flag-banner-short.fbx" id="11_v5j5c"] @@ -81,41 +84,6 @@ albedo_color = Color(0.896226, 0.601571, 0.393156, 1) metallic = 0.5 roughness = 0.09607843 -[sub_resource type="ArrayMesh" id="ArrayMesh_vyem2"] -_surfaces = [{ -"aabb": AABB(0, 0, 0, 0.486, 1.009532, 0.0891), -"format": 34896613377, -"index_count": 84, -"index_data": PackedByteArray("AAABAAIAAAADAAEAAAACAAQAAwAAAAQABQACAAEABQAGAAIABwACAAYABwAEAAIABwAGAAQABgAFAAgAAQAIAAUACAAEAAYACQAIAAEACAAJAAQACgABAAMAAQAKAAkACgADAAsACgALAAkABAAMAAMADAAEAAkADQALAAMAAwAMAA0ADgANAAwADQAOAAsADAAJAA4ADwAJAAsADwAOAAkADwALAA4A"), -"name": "wood", -"primitive": 3, -"uv_scale": Vector4(0, 0, 0, 0), -"vertex_count": 16, -"vertex_data": PackedByteArray("EPHO+AAAAAAQ8c74//8AABDxAAAAAAAA7g7O+AAAAAD/////AAAAABDxAAD//wAA//8AAP//AAD//wAAAAAAAP///////wAAAAD/////AADuDs74//8AAO4OAAD//wAAAAD//wAAAADuDgAAAAAAAAAAAAAAAAAAAAAAAP//AAA=") -}] -blend_shape_mode = 0 - -[sub_resource type="ArrayMesh" id="ArrayMesh_f2txt"] -resource_name = "Mesh" -_surfaces = [{ -"aabb": AABB(0, 0, 0, 0.486, 1.009532, 0.0891), -"attribute_data": PackedByteArray("/3+vA4horwP/f02DiGhNg/9/TYP/fwAAiHhNg4h4rwN3B68DAAAAAHcHTYMAAE2D/39Ng3aXTYP/f68DdpevA/9/AACIaAAA/39Ng4hoTYN3B7Z3AAC2d3cHTYMAAE2D/39Ng3aXTYP/fwAAdpcAAIh4tnd3B7Z3iHhNg3cHTYP/f02D//9Ng/9/tnf//7Z3/3+2d4h4tnf/f02DiHhNg///TYP//wAAh/hNg4f4rwN2h68D/38AAHaHTYP/f02D"), -"format": 34896613399, -"index_count": 84, -"index_data": PackedByteArray("AAABAAIAAwACAAEABAAFAAYABwAGAAUACAAHAAUABQAJAAgACAAJAAoACwAKAAkADAANAA4ADwAOAA0AEAARABIAEwASABEAFAAVABYAFwAWABUAGAAZABoAGwAaABkAHAAdAB4AHwAeAB0AIAAhACIAIwAiACEAJAAlACYAJwAmACUAKAApACoAKwAqACkALAArACkAKQAtACwALAAtAC4ALwAuAC0A"), -"material": SubResource("StandardMaterial3D_fjg54"), -"name": "wood", -"primitive": 3, -"uv_scale": Vector4(38.267715, 77.49069, 0, 0), -"vertex_count": 48, -"vertex_data": PackedByteArray("EPHO+AAAAAAQ8c74//8AABDxAAAAAAAAEPEAAP//AAAAAAAA//8AAAAA/////wAA7g4AAP//AADuDs74//8AABDxzvj//wAA////////AAAQ8QAA//8AAP//AAD//wAA7g4AAAAAAADuDgAA//8AAO4OzvgAAAAA7g7O+P//AAAAAP//AAAAAAAA/////wAAAAAAAAAAAAAAAAAA//8AABDxAAD//wAA//8AAP//AAAQ8QAAAAAAAP//AAAAAAAA//8AAAAAAAD//wAA//8AAP////8AAAAA////////AADuDs74//8AABDxzvj//wAA7g7O+AAAAAAQ8c74AAAAAAAA//8AAP8//////wAA/z8AAP//////P/////////8/AAAAAP//AADuDgAA//8AAAAAAAAAAAAA7g4AAAAAAAD//wAAAAAAAP////8AAAAAEPEAAAAAAAAQ8c74AAAAAO4OzvgAAAAAAAD//wAAAADuDgAAAAAAAAAAAAAAAAAA/z//f/8//3//P/9//z//f/9//3//f/9//3//f/9//3//f/9//3//f/9//3//f/9//7//f/+//3//v/9//7//f/8//3//P/9//z//f/8//3//f/8//3//P/9//z//f/8//7//f/+//3//v/9//7//f/9//z//f/8//3//P/9//z////9/////f////3////9//3//P/9//z//f/8//3//P////3/+//9/////f/7//3/+//9//v//f////3////9/") -}] -blend_shape_mode = 0 -shadow_mesh = SubResource("ArrayMesh_vyem2") - -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_n6hdu"] -data = PackedVector3Array(0.4576, 0.9812, 0, 0.4576, 0.9812, 0.089099996, 0.4576, 0, 0, 0.4576, 0, 0.089099996, 0.4576, 0, 0, 0.4576, 0.9812, 0.089099996, 0, 0, 0.089099996, 0, 1.0095, 0.089099996, 0.028299998, 0, 0.089099996, 0.028299998, 0.9812, 0.089099996, 0.028299998, 0, 0.089099996, 0, 1.0095, 0.089099996, 0.4576, 0.9812, 0.089099996, 0.028299998, 0.9812, 0.089099996, 0, 1.0095, 0.089099996, 0, 1.0095, 0.089099996, 0.486, 1.0095, 0.089099996, 0.4576, 0.9812, 0.089099996, 0.4576, 0.9812, 0.089099996, 0.486, 1.0095, 0.089099996, 0.4576, 0, 0.089099996, 0.486, 0, 0.089099996, 0.4576, 0, 0.089099996, 0.486, 1.0095, 0.089099996, 0.028299998, 0, 0, 0.028299998, 0, 0.089099996, 0.028299998, 0.9812, 0, 0.028299998, 0.9812, 0.089099996, 0.028299998, 0.9812, 0, 0.028299998, 0, 0.089099996, 0, 1.0095, 0, 0, 1.0095, 0.089099996, 0, 0, 0, 0, 0, 0.089099996, 0, 0, 0, 0, 1.0095, 0.089099996, 0.4576, 0, 0.089099996, 0.486, 0, 0.089099996, 0.4576, 0, 0, 0.486, 0, 0, 0.4576, 0, 0, 0.486, 0, 0.089099996, 0.486, 0, 0, 0.486, 0, 0.089099996, 0.486, 1.0095, 0, 0.486, 1.0095, 0.089099996, 0.486, 1.0095, 0, 0.486, 0, 0.089099996, 0.028299998, 0.9812, 0.089099996, 0.4576, 0.9812, 0.089099996, 0.028299998, 0.9812, 0, 0.4576, 0.9812, 0, 0.028299998, 0.9812, 0, 0.4576, 0.9812, 0.089099996, 0, 1.0095, 0, 0.486, 1.0095, 0, 0, 1.0095, 0.089099996, 0.486, 1.0095, 0.089099996, 0, 1.0095, 0.089099996, 0.486, 1.0095, 0, 0, 0, 0.089099996, 0.028299998, 0, 0.089099996, 0, 0, 0, 0.028299998, 0, 0, 0, 0, 0, 0.028299998, 0, 0.089099996, 0.486, 0, 0, 0.486, 1.0095, 0, 0.4576, 0, 0, 0.4576, 0.9812, 0, 0.4576, 0, 0, 0.486, 1.0095, 0, 0.028299998, 0.9812, 0, 0.4576, 0.9812, 0, 0.486, 1.0095, 0, 0.486, 1.0095, 0, 0, 1.0095, 0, 0.028299998, 0.9812, 0, 0.028299998, 0.9812, 0, 0, 1.0095, 0, 0.028299998, 0, 0, 0, 0, 0, 0.028299998, 0, 0, 0, 1.0095, 0) - [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_l4kcb"] resource_name = "metal" cull_mode = 2 @@ -177,8 +145,8 @@ _surfaces = [{ blend_shape_mode = 0 shadow_mesh = SubResource("ArrayMesh_aoqsc") -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8cye3"] -data = PackedVector3Array(0.081, 0.3223, -0.020299999, 0.094399996, 0.3118, -0.0081, 0.34829998, 0.3223, -0.020299999, 0.3349, 0.3118, -0.0081, 0.34829998, 0.3223, -0.020299999, 0.094399996, 0.3118, -0.0081, 0.081, 0.081, -0.020299999, 0.094399996, 0.0914, -0.0081, 0.081, 0.3223, -0.020299999, 0.094399996, 0.3118, -0.0081, 0.081, 0.3223, -0.020299999, 0.094399996, 0.0914, -0.0081, 0.094399996, 0.4459, 0.0081, 0.094399996, 0.8778, 0.0081, 0.3349, 0.4459, 0.0081, 0.3349, 0.8778, 0.0081, 0.3349, 0.4459, 0.0081, 0.094399996, 0.8778, 0.0081, 0.081, 0.3223, 0.020299999, 0.34829998, 0.3223, 0.020299999, 0.094399996, 0.3118, 0.0081, 0.3349, 0.3118, 0.0081, 0.094399996, 0.3118, 0.0081, 0.34829998, 0.3223, 0.020299999, 0.34829998, 0.081, 0.020299999, 0.3349, 0.0914, 0.0081, 0.34829998, 0.3223, 0.020299999, 0.3349, 0.3118, 0.0081, 0.34829998, 0.3223, 0.020299999, 0.3349, 0.0914, 0.0081, 0.34829998, 0.4235, -0.020299999, 0.3349, 0.4459, -0.0081, 0.081, 0.4235, -0.020299999, 0.094399996, 0.4459, -0.0081, 0.081, 0.4235, -0.020299999, 0.3349, 0.4459, -0.0081, 0.3349, 0.8778, -0.0081, 0.34829998, 0.90019995, -0.020299999, 0.094399996, 0.8778, -0.0081, 0.081, 0.90019995, -0.020299999, 0.094399996, 0.8778, -0.0081, 0.34829998, 0.90019995, -0.020299999, 0.34829998, 0.4235, -0.020299999, 0.34829998, 0.90019995, -0.020299999, 0.3349, 0.4459, -0.0081, 0.3349, 0.8778, -0.0081, 0.3349, 0.4459, -0.0081, 0.34829998, 0.90019995, -0.020299999, 0.34829998, 0.081, -0.020299999, 0.34829998, 0.3223, -0.020299999, 0.3349, 0.0914, -0.0081, 0.3349, 0.3118, -0.0081, 0.3349, 0.0914, -0.0081, 0.34829998, 0.3223, -0.020299999, 0.081, 0.081, -0.020299999, 0.34829998, 0.081, -0.020299999, 0.094399996, 0.0914, -0.0081, 0.3349, 0.0914, -0.0081, 0.094399996, 0.0914, -0.0081, 0.34829998, 0.081, -0.020299999, 0.094399996, 0.0914, -0.0081, 0.3349, 0.0914, -0.0081, 0.094399996, 0.3118, -0.0081, 0.3349, 0.3118, -0.0081, 0.094399996, 0.3118, -0.0081, 0.3349, 0.0914, -0.0081, 0.081, 0.081, 0.020299999, 0.081, 0.3223, 0.020299999, 0.094399996, 0.0914, 0.0081, 0.094399996, 0.3118, 0.0081, 0.094399996, 0.0914, 0.0081, 0.081, 0.3223, 0.020299999, 0.094399996, 0.0914, 0.0081, 0.094399996, 0.3118, 0.0081, 0.3349, 0.0914, 0.0081, 0.3349, 0.3118, 0.0081, 0.3349, 0.0914, 0.0081, 0.094399996, 0.3118, 0.0081, 0.081, 0.081, 0.020299999, 0.094399996, 0.0914, 0.0081, 0.34829998, 0.081, 0.020299999, 0.3349, 0.0914, 0.0081, 0.34829998, 0.081, 0.020299999, 0.094399996, 0.0914, 0.0081, 0.081, 0.4235, 0.020299999, 0.081, 0.90019995, 0.020299999, 0.094399996, 0.4459, 0.0081, 0.094399996, 0.8778, 0.0081, 0.094399996, 0.4459, 0.0081, 0.081, 0.90019995, 0.020299999, 0.081, 0.4235, -0.020299999, 0.094399996, 0.4459, -0.0081, 0.081, 0.90019995, -0.020299999, 0.094399996, 0.8778, -0.0081, 0.081, 0.90019995, -0.020299999, 0.094399996, 0.4459, -0.0081, 0.094399996, 0.8778, 0.0081, 0.081, 0.90019995, 0.020299999, 0.3349, 0.8778, 0.0081, 0.34829998, 0.90019995, 0.020299999, 0.3349, 0.8778, 0.0081, 0.081, 0.90019995, 0.020299999, 0.081, 0.081, -0.020299999, 0.42929998, 0, -0.020299999, 0.34829998, 0.081, -0.020299999, 0.42929998, 0, -0.020299999, 0.081, 0.081, -0.020299999, 0, 0, -0.020299999, 0, 0.9812, -0.020299999, 0, 0, -0.020299999, 0.081, 0.081, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.34829998, 0.081, -0.020299999, 0.42929998, 0, -0.020299999, 0.34829998, 0.3223, -0.020299999, 0.34829998, 0.081, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.42929998, 0, -0.020299999, 0.081, 0.3223, -0.020299999, 0.34829998, 0.3223, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.081, 0.3223, -0.020299999, 0, 0.9812, -0.020299999, 0.081, 0.081, -0.020299999, 0.4075, 0.5248, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0.4075, 0.4033, -0.020299999, 0.36699998, 0.4033, -0.020299999, 0.081, 0.3223, -0.020299999, 0.36699998, 0.5248, -0.020299999, 0.4075, 0.5248, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0.36699998, 0.4033, -0.020299999, 0.081, 0.4235, -0.020299999, 0.081, 0.3223, -0.020299999, 0.081, 0.4235, -0.020299999, 0, 0.9812, -0.020299999, 0.081, 0.3223, -0.020299999, 0.34829998, 0.4235, -0.020299999, 0.081, 0.4235, -0.020299999, 0.36699998, 0.4033, -0.020299999, 0.36699998, 0.4033, -0.020299999, 0.36699998, 0.5248, -0.020299999, 0.34829998, 0.4235, -0.020299999, 0.081, 0.90019995, -0.020299999, 0, 0.9812, -0.020299999, 0.081, 0.4235, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0, 0.9812, -0.020299999, 0.081, 0.90019995, -0.020299999, 0.34829998, 0.90019995, -0.020299999, 0.34829998, 0.4235, -0.020299999, 0.36699998, 0.5248, -0.020299999, 0.081, 0.90019995, -0.020299999, 0.34829998, 0.90019995, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0.34829998, 0.90019995, -0.020299999, 0.36699998, 0.5248, -0.020299999, 0.42929998, 0.9812, -0.020299999, 0.081, 0.4235, 0.020299999, 0.094399996, 0.4459, 0.0081, 0.34829998, 0.4235, 0.020299999, 0.3349, 0.4459, 0.0081, 0.34829998, 0.4235, 0.020299999, 0.094399996, 0.4459, 0.0081, 0, 0.9812, -0.020299999, 0, 0.9812, 0.020299999, 0, 0, -0.020299999, 0, 0, 0.020299999, 0, 0, -0.020299999, 0, 0.9812, 0.020299999, 0, 0.9812, 0.020299999, 0, 0.9812, -0.020299999, 0.42929998, 0.9812, 0.020299999, 0.42929998, 0.9812, -0.020299999, 0.42929998, 0.9812, 0.020299999, 0, 0.9812, -0.020299999, 0.3349, 0.4459, -0.0081, 0.3349, 0.8778, -0.0081, 0.094399996, 0.4459, -0.0081, 0.094399996, 0.8778, -0.0081, 0.094399996, 0.4459, -0.0081, 0.3349, 0.8778, -0.0081, 0.36659998, 0.5248, 0.020299999, 0.36659998, 0.4033, 0.020299999, 0.34829998, 0.4235, 0.020299999, 0.34829998, 0.90019995, 0.020299999, 0.36659998, 0.5248, 0.020299999, 0.34829998, 0.4235, 0.020299999, 0.4071, 0.5248, 0.020299999, 0.36659998, 0.5248, 0.020299999, 0.34829998, 0.90019995, 0.020299999, 0.081, 0.4235, 0.020299999, 0.34829998, 0.4235, 0.020299999, 0.36659998, 0.4033, 0.020299999, 0.34829998, 0.90019995, 0.020299999, 0.42929998, 0.9812, 0.020299999, 0.4071, 0.5248, 0.020299999, 0.36659998, 0.4033, 0.020299999, 0.34829998, 0.3223, 0.020299999, 0.081, 0.4235, 0.020299999, 0.4071, 0.5248, 0.020299999, 0.42929998, 0.9812, 0.020299999, 0.4071, 0.4033, 0.020299999, 0.36659998, 0.4033, 0.020299999, 0.4071, 0.4033, 0.020299999, 0.34829998, 0.3223, 0.020299999, 0.42929998, 0.9812, 0.020299999, 0.42929998, 0, 0.020299999, 0.4071, 0.4033, 0.020299999, 0.34829998, 0.3223, 0.020299999, 0.4071, 0.4033, 0.020299999, 0.34829998, 0.081, 0.020299999, 0.34829998, 0.081, 0.020299999, 0.4071, 0.4033, 0.020299999, 0.42929998, 0, 0.020299999, 0.34829998, 0.3223, 0.020299999, 0.081, 0.3223, 0.020299999, 0.081, 0.4235, 0.020299999, 0.081, 0.081, 0.020299999, 0.34829998, 0.081, 0.020299999, 0.42929998, 0, 0.020299999, 0.42929998, 0, 0.020299999, 0, 0, 0.020299999, 0.081, 0.081, 0.020299999, 0, 0.9812, 0.020299999, 0.081, 0.081, 0.020299999, 0, 0, 0.020299999, 0.081, 0.3223, 0.020299999, 0.081, 0.081, 0.020299999, 0, 0.9812, 0.020299999, 0.081, 0.4235, 0.020299999, 0.081, 0.3223, 0.020299999, 0, 0.9812, 0.020299999, 0, 0.9812, 0.020299999, 0.42929998, 0.9812, 0.020299999, 0.34829998, 0.90019995, 0.020299999, 0.081, 0.90019995, 0.020299999, 0.081, 0.4235, 0.020299999, 0, 0.9812, 0.020299999, 0.34829998, 0.90019995, 0.020299999, 0.081, 0.90019995, 0.020299999, 0, 0.9812, 0.020299999, 0, 0, 0.020299999, 0.42929998, 0, 0.020299999, 0, 0, -0.020299999, 0.42929998, 0, -0.020299999, 0, 0, -0.020299999, 0.42929998, 0, 0.020299999, 0.42929998, 0, -0.020299999, 0.42929998, 0, 0.020299999, 0.42929998, 0.9812, -0.020299999, 0.42929998, 0.9812, 0.020299999, 0.42929998, 0.9812, -0.020299999, 0.42929998, 0, 0.020299999, 0.34829998, 0.4235, 0.020299999, 0.3349, 0.4459, 0.0081, 0.34829998, 0.90019995, 0.020299999, 0.3349, 0.8778, 0.0081, 0.34829998, 0.90019995, 0.020299999, 0.3349, 0.4459, 0.0081, 0.4035, 0.4154, -0.0284, 0.4075, 0.4033, -0.020299999, 0.4035, 0.5126, -0.0284, 0.4075, 0.5248, -0.020299999, 0.4035, 0.5126, -0.0284, 0.4075, 0.4033, -0.020299999, 0.36659998, 0.5248, 0.0202, 0.3706, 0.5126, 0.028299998, 0.36659998, 0.4033, 0.0202, 0.3706, 0.4154, 0.028299998, 0.36659998, 0.4033, 0.0202, 0.3706, 0.5126, 0.028299998, 0.318, 0.4924, 0.0567, 0.318, 0.4924, 0.044499997, 0.3949, 0.4924, 0.0567, 0.3787, 0.4924, 0.0405, 0.3949, 0.4924, 0.0567, 0.318, 0.4924, 0.044499997, 0.3787, 0.4924, 0.028299998, 0.3949, 0.4924, 0.0567, 0.3787, 0.4924, 0.0405, 0.3949, 0.4924, 0.028299998, 0.3949, 0.4924, 0.0567, 0.3787, 0.4924, 0.028299998, 0.36659998, 0.4033, 0.0202, 0.3706, 0.4154, 0.028299998, 0.4071, 0.4033, 0.0202, 0.403, 0.4154, 0.028299998, 0.4071, 0.4033, 0.0202, 0.3706, 0.4154, 0.028299998, 0.4075, 0.4033, -0.020299999, 0.4035, 0.4154, -0.0284, 0.36699998, 0.4033, -0.020299999, 0.37109998, 0.4154, -0.0284, 0.36699998, 0.4033, -0.020299999, 0.4035, 0.4154, -0.0284, 0.37109998, 0.5126, -0.0284, 0.36699998, 0.5248, -0.020299999, 0.37109998, 0.4154, -0.0284, 0.36699998, 0.4033, -0.020299999, 0.37109998, 0.4154, -0.0284, 0.36699998, 0.5248, -0.020299999, 0.4035, 0.5126, -0.0284, 0.4075, 0.5248, -0.020299999, 0.37109998, 0.5126, -0.0284, 0.36699998, 0.5248, -0.020299999, 0.37109998, 0.5126, -0.0284, 0.4075, 0.5248, -0.020299999, 0.3787, 0.47619998, 0.0567, 0.318, 0.4843, 0.0567, 0.3949, 0.47619998, 0.0567, 0.3949, 0.4924, 0.0567, 0.3949, 0.47619998, 0.0567, 0.318, 0.4843, 0.0567, 0.318, 0.4924, 0.0567, 0.3949, 0.4924, 0.0567, 0.318, 0.4843, 0.0567, 0.37919998, 0.4924, -0.0405, 0.37919998, 0.4924, -0.0284, 0.37919998, 0.47619998, -0.0405, 0.37919998, 0.47619998, -0.0284, 0.37919998, 0.47619998, -0.0405, 0.37919998, 0.4924, -0.0284, 0.318, 0.4924, 0.044499997, 0.318, 0.4924, 0.0567, 0.318, 0.4843, 0.044499997, 0.318, 0.4843, 0.0567, 0.318, 0.4843, 0.044499997, 0.318, 0.4924, 0.0567, 0.3954, 0.47619998, -0.0567, 0.3954, 0.47619998, -0.0284, 0.3954, 0.4924, -0.0567, 0.3954, 0.4924, -0.0284, 0.3954, 0.4924, -0.0567, 0.3954, 0.47619998, -0.0284, 0.37919998, 0.47619998, -0.0284, 0.3954, 0.47619998, -0.0284, 0.37919998, 0.47619998, -0.0405, 0.37919998, 0.47619998, -0.0567, 0.37919998, 0.47619998, -0.0405, 0.3954, 0.47619998, -0.0284, 0.3954, 0.47619998, -0.0567, 0.37919998, 0.47619998, -0.0567, 0.3954, 0.47619998, -0.0284, 0.37109998, 0.4154, -0.0284, 0.4035, 0.4154, -0.0284, 0.3954, 0.47619998, -0.0284, 0.4035, 0.5126, -0.0284, 0.3954, 0.47619998, -0.0284, 0.4035, 0.4154, -0.0284, 0.3954, 0.47619998, -0.0284, 0.37919998, 0.47619998, -0.0284, 0.37109998, 0.4154, -0.0284, 0.3954, 0.4924, -0.0284, 0.3954, 0.47619998, -0.0284, 0.4035, 0.5126, -0.0284, 0.37109998, 0.5126, -0.0284, 0.37109998, 0.4154, -0.0284, 0.37919998, 0.47619998, -0.0284, 0.37919998, 0.4924, -0.0284, 0.3954, 0.4924, -0.0284, 0.4035, 0.5126, -0.0284, 0.4035, 0.5126, -0.0284, 0.37109998, 0.5126, -0.0284, 0.37919998, 0.4924, -0.0284, 0.37919998, 0.4924, -0.0284, 0.37109998, 0.5126, -0.0284, 0.37919998, 0.47619998, -0.0284, 0.4071, 0.4033, 0.0202, 0.403, 0.4154, 0.028299998, 0.4071, 0.5248, 0.0202, 0.403, 0.5126, 0.028299998, 0.4071, 0.5248, 0.0202, 0.403, 0.4154, 0.028299998, 0.3184, 0.4924, -0.0446, 0.3184, 0.4924, -0.0567, 0.37919998, 0.4924, -0.0405, 0.3954, 0.4924, -0.0567, 0.37919998, 0.4924, -0.0405, 0.3184, 0.4924, -0.0567, 0.3954, 0.4924, -0.0284, 0.37919998, 0.4924, -0.0405, 0.3954, 0.4924, -0.0567, 0.37919998, 0.4924, -0.0405, 0.3954, 0.4924, -0.0284, 0.37919998, 0.4924, -0.0284, 0.3787, 0.47619998, 0.0405, 0.3787, 0.4924, 0.0405, 0.318, 0.4843, 0.044499997, 0.318, 0.4924, 0.044499997, 0.318, 0.4843, 0.044499997, 0.3787, 0.4924, 0.0405, 0.3954, 0.47619998, -0.0567, 0.3954, 0.4924, -0.0567, 0.37919998, 0.47619998, -0.0567, 0.3184, 0.4843, -0.0567, 0.37919998, 0.47619998, -0.0567, 0.3954, 0.4924, -0.0567, 0.3184, 0.4924, -0.0567, 0.3184, 0.4843, -0.0567, 0.3954, 0.4924, -0.0567, 0.3706, 0.5126, 0.028299998, 0.36659998, 0.5248, 0.0202, 0.403, 0.5126, 0.028299998, 0.4071, 0.5248, 0.0202, 0.403, 0.5126, 0.028299998, 0.36659998, 0.5248, 0.0202, 0.3184, 0.4924, -0.0567, 0.3184, 0.4924, -0.0446, 0.3184, 0.4843, -0.0567, 0.3184, 0.4843, -0.0446, 0.3184, 0.4843, -0.0567, 0.3184, 0.4924, -0.0446, 0.3949, 0.47619998, 0.028299998, 0.3949, 0.47619998, 0.0567, 0.3949, 0.4924, 0.028299998, 0.3949, 0.4924, 0.0567, 0.3949, 0.4924, 0.028299998, 0.3949, 0.47619998, 0.0567, 0.318, 0.4843, 0.0567, 0.3787, 0.47619998, 0.0567, 0.318, 0.4843, 0.044499997, 0.3787, 0.47619998, 0.0405, 0.318, 0.4843, 0.044499997, 0.3787, 0.47619998, 0.0567, 0.403, 0.4154, 0.028299998, 0.3706, 0.4154, 0.028299998, 0.3787, 0.47619998, 0.028299998, 0.3706, 0.5126, 0.028299998, 0.3787, 0.47619998, 0.028299998, 0.3706, 0.4154, 0.028299998, 0.3787, 0.47619998, 0.028299998, 0.3949, 0.47619998, 0.028299998, 0.403, 0.4154, 0.028299998, 0.3787, 0.4924, 0.028299998, 0.3787, 0.47619998, 0.028299998, 0.3706, 0.5126, 0.028299998, 0.403, 0.5126, 0.028299998, 0.403, 0.4154, 0.028299998, 0.3949, 0.47619998, 0.028299998, 0.3949, 0.4924, 0.028299998, 0.3787, 0.4924, 0.028299998, 0.3706, 0.5126, 0.028299998, 0.3706, 0.5126, 0.028299998, 0.403, 0.5126, 0.028299998, 0.3949, 0.4924, 0.028299998, 0.3949, 0.4924, 0.028299998, 0.403, 0.5126, 0.028299998, 0.3949, 0.47619998, 0.028299998, 0.3787, 0.4924, 0.028299998, 0.3787, 0.4924, 0.0405, 0.3787, 0.47619998, 0.028299998, 0.3787, 0.47619998, 0.0405, 0.3787, 0.47619998, 0.028299998, 0.3787, 0.4924, 0.0405, 0.3787, 0.47619998, 0.0567, 0.3949, 0.47619998, 0.0567, 0.3787, 0.47619998, 0.0405, 0.3787, 0.47619998, 0.028299998, 0.3787, 0.47619998, 0.0405, 0.3949, 0.47619998, 0.0567, 0.3949, 0.47619998, 0.028299998, 0.3787, 0.47619998, 0.028299998, 0.3949, 0.47619998, 0.0567, 0.3184, 0.4843, -0.0446, 0.37919998, 0.47619998, -0.0405, 0.3184, 0.4843, -0.0567, 0.37919998, 0.47619998, -0.0567, 0.3184, 0.4843, -0.0567, 0.37919998, 0.47619998, -0.0405, 0.37919998, 0.47619998, -0.0405, 0.3184, 0.4843, -0.0446, 0.37919998, 0.4924, -0.0405, 0.3184, 0.4924, -0.0446, 0.37919998, 0.4924, -0.0405, 0.3184, 0.4843, -0.0446) +[sub_resource type="BoxShape3D" id="BoxShape3D_qw2y7"] +size = Vector3(1.0654907, 2.4491425, 0.104003906) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vefed"] resource_name = "carpetWhite" @@ -838,14 +806,14 @@ size = Vector3(0.1, 3, 10) material = SubResource("StandardMaterial3D_42xju") [node name="Doorhole1" type="CSGBox3D" parent="Walls/WallsCombiner"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, -3.8) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2533493, -3.79546) operation = 2 -size = Vector3(0.11, 2.5, 1.23) +size = Vector3(0.11, 2.5066986, 1.1822906) [node name="Doorhole2" type="CSGBox3D" parent="Walls/WallsCombiner"] -transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -5, 1.25, 0) +transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -4.9842215, 1.2501907, -6.897174e-10) operation = 2 -size = Vector3(0.11, 2.5, 1.25) +size = Vector3(0.11, 2.5003815, 1.181864) [node name="Doorhole3" type="CSGBox3D" parent="Walls/WallsCombiner"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 1.25, 0.385) @@ -866,27 +834,104 @@ sides = 60 [node name="CSGBakedCollisionShape3D" type="CollisionShape3D" parent="Walls"] shape = SubResource("ConcavePolygonShape3D_km5ld") -[node name="Doorway" type="StaticBody3D" parent="."] -transform = Transform3D(-1.09278474e-07, 0, -2.5, 0, 2.5, 0, 2.5, 0, -1.09278474e-07, 0.1, 0, -4.4) +[node name="Door1" type="Node3D" parent="."] -[node name="Doorway" type="MeshInstance3D" parent="Doorway"] -transform = Transform3D(1, 0, -3.5527137e-15, 0, 1, 0, 3.5527137e-15, 0, 1, 0, 0, 0) -mesh = SubResource("ArrayMesh_f2txt") +[node name="DoorHinge" type="HingeJoint3D" parent="Door1"] +transform = Transform3D(0.99999994, 0, 0, 0, -4.371139e-08, -0.99999994, 0, 1, -4.3711385e-08, -0.018, 2.302, -4.338022) +node_a = NodePath("../Door") +angular_limit/enable = true +angular_limit/upper = 0.0 + +[node name="DoorPin" type="PinJoint3D" parent="Door1"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.018, 2.302, -3.366) +node_a = NodePath("../Door") +node_b = NodePath("../DoorHandle") + +[node name="DoorHandle" parent="Door1" instance=ExtResource("7_0mnfp")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.018, 1.1532086, -3.366) + +[node name="Doorway" type="MeshInstance3D" parent="Door1"] +transform = Transform3D(-1.070929e-07, 0, 2.45, 0, 2.45, 0, -2.45, 0, -1.070929e-07, -0.11461365, -0.032257676, -4.391939) +mesh = ExtResource("8_uuqa8") skeleton = NodePath("") -[node name="Collsion" type="CollisionShape3D" parent="Doorway"] -shape = SubResource("ConcavePolygonShape3D_n6hdu") +[node name="Door" type="RigidBody3D" parent="Door1"] +transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -0.0043622255, -0.0372895, -4.3392906) +axis_lock_linear_x = true +axis_lock_linear_y = true +axis_lock_linear_z = true +axis_lock_angular_x = true +axis_lock_angular_z = true +mass = 2.0 +gravity_scale = 0.0 +center_of_mass_mode = 1 +continuous_cd = true +linear_damp = 1.0 +angular_damp = 20.0 -[node name="Door" type="StaticBody3D" parent="."] -transform = Transform3D(1.9151111, 0, 1.6069689, 0, 2.5, 0, -1.6069689, 0, 1.9151111, 0.14, 0, -4.3) - -[node name="Door" type="MeshInstance3D" parent="Door"] -transform = Transform3D(-0.6555847, 0, -0.7551217, 0, 0.99999994, 0, 0.7551217, 0, -0.6555847, 0, 0, 0) +[node name="Door" type="MeshInstance3D" parent="Door1/Door"] +transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, 0, 0.016430676, 0) mesh = SubResource("ArrayMesh_km5ld") -[node name="Collision" type="CollisionShape3D" parent="Door"] -transform = Transform3D(-0.6555847, 0, -0.7551217, 0, 0.99999994, 0, 0.7551217, 0, -0.6555847, 0, 0, 0) -shape = SubResource("ConcavePolygonShape3D_8cye3") +[node name="CollisionShape3D" type="CollisionShape3D" parent="Door1/Door"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.53500366, 1.2422104, -0.0017089471) +shape = SubResource("BoxShape3D_qw2y7") + +[node name="Door2" type="Node3D" parent="." node_paths=PackedStringArray("door_rigidbody", "wheel_snap_zone")] +transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -1.19, 0, 0) +script = ExtResource("10_qw2y7") +door_rigidbody = NodePath("Door") +wheel_snap_zone = NodePath("../WheelSpace/WheelSnapZone") + +[node name="DoorHinge" type="HingeJoint3D" parent="Door2"] +transform = Transform3D(0.99999994, 0, 0, 0, -4.371139e-08, -0.99999994, 0, 1, -4.3711385e-08, -0.018, 2.302, -4.338022) +node_a = NodePath("../Door") +angular_limit/enable = true +angular_limit/upper = 0.0 + +[node name="DoorPin" type="PinJoint3D" parent="Door2"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.018, 2.302, -3.366) +node_a = NodePath("../Door") +node_b = NodePath("../DoorHandle") + +[node name="DoorHandle" parent="Door2" instance=ExtResource("7_0mnfp")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.018, 1.1532086, -3.366) + +[node name="Doorway" type="MeshInstance3D" parent="Door2"] +transform = Transform3D(-1.070929e-07, 0, 2.45, 0, 2.45, 0, -2.45, 0, -1.070929e-07, -0.11461365, -0.032257676, -4.391939) +mesh = ExtResource("8_uuqa8") +skeleton = NodePath("") + +[node name="Door" type="RigidBody3D" parent="Door2"] +transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -0.0043622255, -0.0372895, -4.3392906) +axis_lock_linear_x = true +axis_lock_linear_y = true +axis_lock_linear_z = true +axis_lock_angular_x = true +axis_lock_angular_z = true +mass = 2.0 +gravity_scale = 0.0 +center_of_mass_mode = 1 +freeze = true +continuous_cd = true +linear_damp = 1.0 +angular_damp = 20.0 + +[node name="Door" type="MeshInstance3D" parent="Door2/Door"] +transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, 0, 0.016430676, 0) +mesh = SubResource("ArrayMesh_km5ld") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Door2/Door"] +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) [node name="DoorwayMetal1" type="StaticBody3D" parent="."] transform = Transform3D(-1.09278474e-07, 0, 2.5, 0, 2.5, 0, -2.5, 0, -1.09278474e-07, 9.8, 0, 1) @@ -910,35 +955,13 @@ skeleton = NodePath("") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.02835, 0, 0.04455) shape = SubResource("ConcavePolygonShape3D_fedht") -[node name="DoorwayMetal2" type="StaticBody3D" parent="."] -transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, -5.6, 0, -0.125) - -[node name="doorwayFront" type="MeshInstance3D" parent="DoorwayMetal2"] -mesh = SubResource("ArrayMesh_i2t4f") -skeleton = NodePath("") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="DoorwayMetal2"] -shape = SubResource("ConcavePolygonShape3D_2orkt") - -[node name="DoorMetal2" type="StaticBody3D" parent="."] -transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, -5.6, 0, -0.125) - -[node name="door" type="MeshInstance3D" parent="DoorMetal2"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.02835, 0, 0.04455) -mesh = SubResource("ArrayMesh_aicyk") -skeleton = NodePath("") - -[node name="CollisionShape3D2" type="CollisionShape3D" parent="DoorMetal2"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.02835, 0, 0.04455) -shape = SubResource("ConcavePolygonShape3D_fedht") - [node name="Bookcase" type="RigidBody3D" parent="."] -transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 1.0959619, -0.037149236, -2.525105) +transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 1.0494984, -0.037149236, -2.3747776) axis_lock_linear_x = true axis_lock_angular_x = true axis_lock_angular_y = true axis_lock_angular_z = true -mass = 50.0 +mass = 10.0 physics_material_override = SubResource("PhysicsMaterial_6btg4") freeze = true script = ExtResource("7_mleqk") @@ -1454,12 +1477,5 @@ collision_layer = 5 continuous_cd = true linear_damp = 0.2 -[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.6972694, 1.6133904, -0.13313043) - [editable path="Player"] +[editable path="WheelSpace"] diff --git a/player.tscn b/player.tscn index d9287cc..6763ab5 100644 --- a/player.tscn +++ b/player.tscn @@ -44,4 +44,4 @@ transform = Transform3D(0.00025759128, -0.0019833425, 0, 0.0018915471, 0.0002456 [node name="PlayerBody" parent="." instance=ExtResource("4_2hs0m")] player_height_rate = 20.0 -push_strength_factor = 5.0 +head_behavior_mode = 2