keys and doors working
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=4 uid="uid://dqnb5y6p04lpi"]
|
||||
[gd_scene load_steps=6 format=4 uid="uid://dqnb5y6p04lpi"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/key_pickup.gd" id="1_rbnu5"]
|
||||
|
||||
@@ -8,7 +8,6 @@ cull_mode = 2
|
||||
albedo_color = Color(0.671507, 0.697251, 0.673335, 1)
|
||||
metallic = 1.0
|
||||
roughness = 0.0898204
|
||||
emission_enabled = true
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 0.1
|
||||
|
||||
@@ -49,15 +48,12 @@ shadow_mesh = SubResource("ArrayMesh_crfbj")
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_0gdfr"]
|
||||
size = Vector3(0.913818, 0.10791, 0.37793)
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_vujtd"]
|
||||
radius = 1.26183
|
||||
|
||||
[node name="Key1" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["scene_rigidbody"]]
|
||||
collision_layer = 0
|
||||
collision_mask = 33
|
||||
[node name="Key1" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]]
|
||||
collision_layer = 16
|
||||
collision_mask = 49
|
||||
continuous_cd = true
|
||||
script = ExtResource("1_rbnu5")
|
||||
collision_shape = NodePath("Area3D")
|
||||
collision_shape = NodePath("CollisionShape3D")
|
||||
|
||||
[node name="Key" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.92388, 0, 0.382683, 0, 1, 0, -0.382683, 0, 0.92388, 0.0247749, 0, 0)
|
||||
@@ -67,10 +63,3 @@ skeleton = NodePath("")
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0285698, -0.00170898, -0.0102517)
|
||||
shape = SubResource("BoxShape3D_0gdfr")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
collision_layer = 16
|
||||
collision_mask = 16
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("SphereShape3D_vujtd")
|
||||
|
||||
Reference in New Issue
Block a user