Fixed doors by unlocking angular axis (x and z), renamed Door.gd to HingeInteractable.gd
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user