🚧 WIP: trying to rework the detection system (it fails)

This commit is contained in:
2025-12-09 17:51:00 +01:00
parent bef54420e4
commit 9499c27444
12 changed files with 106 additions and 17 deletions
+13 -5
View File
@@ -1,12 +1,20 @@
[gd_scene load_steps=3 format=3 uid="uid://pflu0uaig7vv"]
[gd_scene load_steps=4 format=3 uid="uid://pflu0uaig7vv"]
[ext_resource type="Script" uid="uid://ccc6m6c5khd2x" path="res://scripts/CSharp/Common/CharacterControls/DetectionCross.cs" id="1_va8tx"]
[ext_resource type="PackedScene" uid="uid://dugr6ff1g7hi0" path="res://prefabs/interactions/detector.tscn" id="2_8hh05"]
[ext_resource type="Script" uid="uid://b4n0nlu4ckqga" path="res://scripts/CSharp/Common/CharacterControls/RaycastDetector.cs" id="2_va8tx"]
[node name="DetectionCross" type="Node2D" node_paths=PackedStringArray("_detector")]
[node name="DetectionCross" type="Node2D" node_paths=PackedStringArray("_collider", "_detector")]
script = ExtResource("1_va8tx")
_detector = NodePath("detector")
_xOffset = 400.0
_yOffset = 300.0
_collider = NodePath("detector")
_detector = NodePath("Raycast")
_xOffset = 200.0
_yOffset = 200.0
[node name="Raycast" type="RayCast2D" parent="."]
top_level = true
target_position = Vector2(257, -149)
collide_with_areas = true
script = ExtResource("2_va8tx")
[node name="detector" parent="." instance=ExtResource("2_8hh05")]