Fixed doors by unlocking angular axis (x and z), renamed Door.gd to HingeInteractable.gd

This commit is contained in:
2026-09-26 09:48:59 +03:00
parent a86839c8cd
commit 343e927db9
7 changed files with 83 additions and 146 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
[gd_scene format=3 uid="uid://hmpweoahtner"]
[ext_resource type="Script" uid="uid://cyw8ng7alo12e" path="res://Scripts/Door.gd" id="1_1vvux"]
[ext_resource type="Script" uid="uid://cyw8ng7alo12e" path="res://Scripts/HingeInteractable.gd" id="1_1vvux"]
[sub_resource type="BoxMesh" id="BoxMesh_va8t4"]
size = Vector3(0.2, 3, 0.2)
@@ -57,8 +57,6 @@ transform = Transform3D(-4.371139e-08, -0.635, 0, 1, -2.7756732e-08, 0, 0, 0, 1,
shape = SubResource("BoxShape3D_476pq")
[node name="DoorBody" type="RigidBody3D" parent="." unique_id=1982348670]
axis_lock_angular_x = true
axis_lock_angular_z = true
mass = 10.0
angular_damp = 5.0