WIP: Migrating to node3ds

This commit is contained in:
Nikolai Rodionov 2025-02-09 23:33:33 +01:00
parent 1f6eff86c8
commit b1d76d433a
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=4 uid="uid://ddwrs0so7swxn"]
[gd_scene load_steps=20 format=4 uid="uid://ddwrs0so7swxn"]
[ext_resource type="Script" path="res://scenes/characters/character_wrapper.gd" id="1_k4p2i"]
[ext_resource type="Script" path="res://scenes/characters/hit_detected.gd" id="2_oqdj0"]
@ -2322,11 +2322,7 @@ _data = {
"t_pose": SubResource("Animation_jk3i7")
}
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gp5it"]
[node name="Character" type="CharacterBody3D"]
collision_layer = 0
collision_mask = 0
[node name="Character" type="Marker3D"]
script = ExtResource("1_k4p2i")
[node name="Model" type="Node3D" parent="."]
@ -3020,10 +3016,6 @@ libraries = {
"": SubResource("AnimationLibrary_1yo1h")
}
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.951935, 0)
shape = SubResource("CapsuleShape3D_gp5it")
[connection signal="body_part_hit" from="Model/Body/Skeleton3D/HeadAttachment/Area" to="." method="_on_area_body_part_hit"]
[connection signal="body_part_hit" from="Model/Body/Skeleton3D/TorsoAttachment/Area" to="." method="_on_area_body_part_hit"]
[connection signal="body_part_hit" from="Model/Body/Skeleton3D/RightHipAttachment/Area" to="." method="_on_area_body_part_hit"]