]> Untitled Git - william-skin.git/blob - test/npc.tscn
57aea154840cc73a944926b5d49f14a1ca2d4a2b
[william-skin.git] / test / npc.tscn
1 [gd_scene load_steps=4 format=3 uid="uid://bmcw5a71lsldu"]
2
3 [ext_resource type="PackedScene" uid="uid://2tvylmtejq0u" path="res://william.tscn" id="1_fk6op"]
4 [ext_resource type="Script" path="res://test/npc.gd" id="1_tko4h"]
5
6 [sub_resource type="CylinderShape3D" id="CylinderShape3D_rgxya"]
7 radius = 3.27162
8
9 [node name="NonPlayerCharacter" type="Node3D"]
10 script = ExtResource("1_tko4h")
11
12 [node name="skin" parent="." instance=ExtResource("1_fk6op")]
13
14 [node name="headTurn" type="Area3D" parent="skin"]
15
16 [node name="CollisionShape3D" type="CollisionShape3D" parent="skin/headTurn"]
17 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 3.17898)
18 shape = SubResource("CylinderShape3D_rgxya")
19
20 [node name="playerTrackPoint" type="Node3D" parent="skin" groups=["player-eyeTrack", "player-headTrack"]]
21 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.77777, 0.0828433)
22
23 [connection signal="area_entered" from="skin/headTurn" to="." method="_on_head_turn_area_entered"]
24 [connection signal="area_exited" from="skin/headTurn" to="." method="_on_head_turn_area_exited"]