Files
fps_project_1/assets/pressure_plate.tscn
2025-03-05 09:27:42 -06:00

37 lines
1.4 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://chr8q10bxnrsa"]
[ext_resource type="Script" uid="uid://c3eofio84xbsv" path="res://scripts/pressure_plate.gd" id="1_hedq3"]
[sub_resource type="BoxMesh" id="BoxMesh_fgd7h"]
size = Vector3(1, 0.1, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5rdai"]
albedo_color = Color(0, 0, 0, 1)
emission_enabled = true
emission = Color(1, 0, 0, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_1618f"]
size = Vector3(0.9, 0.15, 0.9)
[sub_resource type="BoxShape3D" id="BoxShape3D_piu7w"]
size = Vector3(1, 0.1, 1)
[node name="PressurePlate" type="MeshInstance3D" groups=["switch"]]
mesh = SubResource("BoxMesh_fgd7h")
surface_material_override/0 = SubResource("StandardMaterial3D_5rdai")
script = ExtResource("1_hedq3")
[node name="CollisionArea" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="CollisionArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
shape = SubResource("BoxShape3D_1618f")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("BoxShape3D_piu7w")
[connection signal="body_entered" from="CollisionArea" to="." method="_on_collision_area_body_entered"]
[connection signal="body_exited" from="CollisionArea" to="." method="_on_collision_area_body_exited"]