Interaction rework

This commit is contained in:
Rendo 2025-12-19 13:23:41 +05:00
commit 72bea66082
11 changed files with 90 additions and 23 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://c2vxq6kqhris0"]
[gd_scene load_steps=4 format=3 uid="uid://b8edjit66j7st"]
[ext_resource type="Script" uid="uid://crjao0jjv5yqs" path="res://src/drag/draggable_camera.gd" id="1_v4apc"]
[ext_resource type="Script" uid="uid://d77lra3ar60b" path="res://src/interactible/interactible_detector.gd" id="2_nstyr"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_hflkp"]
radius = 0.1
@ -16,6 +17,7 @@ target_position = Vector3(0, 0, -10)
[node name="InteractionArea" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 4
script = ExtResource("2_nstyr")
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractionArea"]
transform = Transform3D(1, 0, 0, 0, -2.9802322e-08, -1, 0, 1, -2.9802322e-08, 0, 3.5762787e-07, -5.2500005)