Add a world model and refactor the controller

This commit is contained in:
2025-01-25 09:03:06 +01:00
parent 51842836ce
commit 1f1f2918c9
14 changed files with 1451 additions and 65 deletions

View File

@ -1,8 +1,4 @@
[gd_scene load_steps=10 format=4 uid="uid://1txob6jskn5s"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_e8avt"]
radius = 0.252578
height = 1.8094
[gd_scene load_steps=9 format=4 uid="uid://1txob6jskn5s"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gqjtb"]
resource_name = "Alpha_Joints_MAT"
@ -864,19 +860,14 @@ _data = {
}
[node name="Dummy" type="Node3D"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
[node name="Body" type="Node3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.897246, 0)
shape = SubResource("CapsuleShape3D_e8avt")
[node name="Armature" type="Node3D" parent="Body"]
transform = Transform3D(0.01, 0, 0, 0, -4.37114e-10, -0.01, 0, 0.01, -4.37114e-10, 0, 0, 0)
[node name="Body" type="Node3D" parent="CharacterBody3D"]
[node name="Armature" type="Node3D" parent="CharacterBody3D/Body"]
transform = Transform3D(0.01, 0, 0, 0, 0, -0.01, 0, 0.01, 0, 0, 0, 0)
[node name="Skeleton3D" type="Skeleton3D" parent="CharacterBody3D/Body/Armature"]
[node name="Skeleton3D" type="Skeleton3D" parent="Body/Armature"]
bones/0/name = "mixamorig_Hips"
bones/0/parent = -1
bones/0/rest = Transform3D(1, -8.78096e-05, -2.78699e-06, 2.78699e-06, 0, 1, -8.78096e-05, -1, 0, -6.75701e-06, 4.84474e-05, -99.7919)
@ -1333,16 +1324,16 @@ bones/64/position = Vector3(-8.19564e-08, 10, 5.51343e-07)
bones/64/rotation = Quaternion(-8.44739e-09, 1.30531e-08, -2.55386e-09, 1)
bones/64/scale = Vector3(1, 1, 1)
[node name="Alpha_Joints" type="MeshInstance3D" parent="CharacterBody3D/Body/Armature/Skeleton3D"]
[node name="Alpha_Joints" type="MeshInstance3D" parent="Body/Armature/Skeleton3D"]
mesh = SubResource("ArrayMesh_kiui0")
skin = SubResource("Skin_hwx5g")
[node name="Alpha_Surface" type="MeshInstance3D" parent="CharacterBody3D/Body/Armature/Skeleton3D"]
[node name="Alpha_Surface" type="MeshInstance3D" parent="Body/Armature/Skeleton3D"]
mesh = SubResource("ArrayMesh_8h4ki")
skin = SubResource("Skin_hwx5g")
surface_material_override/0 = SubResource("StandardMaterial3D_j3emx")
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody3D/Body"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="Body"]
libraries = {
"": SubResource("AnimationLibrary_dbxeu")
}