Minor fixes for NPC dialogue stuff

Add collisions for overworld
This commit is contained in:
2026-02-02 22:39:33 -08:00
parent 4c90eb6f07
commit 51c8f26e50
16 changed files with 334 additions and 553 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://ccwn5dfst7o4d"]
[gd_scene load_steps=13 format=3 uid="uid://ccwn5dfst7o4d"]
[ext_resource type="Script" uid="uid://dcqssoikr3pl7" path="res://src/npc/Npc.cs" id="1_38loe"]
[ext_resource type="Resource" uid="uid://lao0opxww3ib" path="res://src/dialog/Dialogue.dialogue" id="2_x0dcb"]
@@ -28,9 +28,6 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wfhgc"]
radius = 5.0
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kg3qv"]
radius = 0.837722
height = 2.8375
@@ -39,6 +36,12 @@ height = 2.8375
height = 2.24425
radius = 1.941
[sub_resource type="CylinderShape3D" id="CylinderShape3D_lsxy3"]
radius = 3.83154
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mui6r"]
radius = 5.81592
[node name="Clalo" type="Node3D"]
script = ExtResource("1_38loe")
Dialogue = ExtResource("2_x0dcb")
@@ -54,15 +57,6 @@ sprite_frames = SubResource("SpriteFrames_2xsnq")
autoplay = "default"
frame_progress = 0.274888
[node name="DialogueZone" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 2070
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00131226, 0, -0.00723076)
shape = SubResource("CylinderShape3D_wfhgc")
[node name="Collision" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.105047, -0.0490516, 0)
collision_mask = 0
@@ -87,3 +81,23 @@ cast_shadow = 0
modulate = Color(1, 1, 1, 0.669)
texture_filter = 0
texture = ExtResource("7_lsxy3")
[node name="DialogueZone" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.273779, 0, 0)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00627995, 0, -0.00723076)
shape = SubResource("CylinderShape3D_lsxy3")
[node name="DialogueExitZone" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.273779, 0, 0)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueExitZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00627995, 0, -0.00723076)
shape = SubResource("CylinderShape3D_mui6r")