diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-29 14:28:57 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-29 14:28:57 +0100 |
commit | 0b14efee60765701f439b5174e56c0cf0639d20c (patch) | |
tree | ba319069e4f0a8d1377f34c5254246b65cff1765 /prefabs/test_arena.tscn | |
parent | 688a0418fd24c9ffff7dca43dd027ccb3784a373 (diff) |
player,bsp_level_generator: Add lockers and interaction
Diffstat (limited to 'prefabs/test_arena.tscn')
-rw-r--r-- | prefabs/test_arena.tscn | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/prefabs/test_arena.tscn b/prefabs/test_arena.tscn index 87d6463..c84ae4b 100644 --- a/prefabs/test_arena.tscn +++ b/prefabs/test_arena.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://dlevowk0jrhlg"] +[gd_scene load_steps=10 format=3 uid="uid://dlevowk0jrhlg"] [ext_resource type="Script" path="res://scripts/dungeon_manager.gd" id="1_dbsm0"] [ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_vc6b5"] @@ -71,6 +71,9 @@ _data = { "walk": SubResource("Animation_nw35k") } +[sub_resource type="BoxShape3D" id="BoxShape3D_r46wa"] +size = Vector3(1.5, 2, 1.5) + [node name="Node3D" type="Node3D"] script = ExtResource("1_dbsm0") @@ -107,4 +110,15 @@ libraries = { "": SubResource("AnimationLibrary_7dyvd") } +[node name="Area3D" type="Area3D" parent="Player/PlayerCam"] +collision_layer = 8 +collision_mask = 8 + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/PlayerCam/Area3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -1) +shape = SubResource("BoxShape3D_r46wa") + [node name="LevelContainer" type="Node3D" parent="."] + +[connection signal="area_entered" from="Player/PlayerCam/Area3D" to="Player/PlayerCam" method="_on_interactable_enter"] +[connection signal="area_exited" from="Player/PlayerCam/Area3D" to="Player/PlayerCam" method="_on_interactable_exit"] |