This commit is contained in:
2026-08-17 13:42:18 -04:00
parent 28e8798021
commit 1eeeb64b39
5 changed files with 563 additions and 129 deletions
+150 -48
View File
@@ -33,137 +33,174 @@ joint_one_bone2d_node = NodePath("Torso/LeftUpperArm")
joint_two_bone_idx = 3
joint_two_bone2d_node = NodePath("Torso/LeftUpperArm/LeftLowerArm")
[sub_resource type="SkeletonModification2DTwoBoneIK" id="SkeletonModification2DTwoBoneIK_ylko5"]
target_nodepath = NodePath("../IK_Targets/Right_Leg")
joint_one_bone_idx = 8
joint_one_bone2d_node = NodePath("Torso/RightUpperLeg")
joint_two_bone_idx = 9
joint_two_bone2d_node = NodePath("Torso/RightUpperLeg/RightLowerLeg")
[sub_resource type="SkeletonModification2DTwoBoneIK" id="SkeletonModification2DTwoBoneIK_2leu7"]
target_nodepath = NodePath("../IK_Targets/Left_Leg")
flip_bend_direction = true
joint_one_bone_idx = 6
joint_one_bone2d_node = NodePath("Torso/LeftUpperLeg")
joint_two_bone_idx = 7
joint_two_bone2d_node = NodePath("Torso/LeftUpperLeg/LeftLowerLeg")
[sub_resource type="SkeletonModification2DLookAt" id="SkeletonModification2DLookAt_j4hao"]
bone_index = 1
bone2d_node = NodePath("Torso/Head")
target_nodepath = NodePath("../IK_Targets/Head")
enable_constraint = true
constraint_angle_min = 54.999985
constraint_angle_max = 304.9999
constraint_angle_invert = true
constraint_in_localspace = true
[sub_resource type="SkeletonModificationStack2D" id="SkeletonModificationStack2D_j4hao"]
enabled = true
modification_count = 2
modification_count = 5
modifications/0 = SubResource("SkeletonModification2DTwoBoneIK_yvxej")
modifications/1 = SubResource("SkeletonModification2DTwoBoneIK_f0s26")
modifications/2 = SubResource("SkeletonModification2DTwoBoneIK_ylko5")
modifications/3 = SubResource("SkeletonModification2DTwoBoneIK_2leu7")
modifications/4 = SubResource("SkeletonModification2DLookAt_j4hao")
[node name="Master" type="Node2D" unique_id=319103476]
[node name="Body" type="Node2D" parent="." unique_id=327811712]
[node name="Head" type="Node2D" parent="Body" unique_id=864822355]
position = Vector2(704, 104)
scale = Vector2(0.99999964, 0.99999964)
position = Vector2(-0.038591623, -463.50787)
rotation = 0.000554086
scale = Vector2(0.99999994, 0.99999994)
script = SubResource("GDScript_f0s26")
[node name="Body" type="Line2D" parent="Body" unique_id=1290443463]
position = Vector2(704, 184)
rotation = -3.1415925
points = PackedVector2Array(0, 0, 0, 400)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="LeftUpperLeg" type="Line2D" parent="Body" unique_id=199373156]
position = Vector2(703.99994, 576)
rotation = 0.5235988
position = Vector2(1.6097914e-05, 5.306938e-07)
rotation = 0.4947604
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="RightUpperLeg" type="Line2D" parent="Body" unique_id=1396556308]
position = Vector2(703.99994, 576)
rotation = -0.5235988
position = Vector2(-2.3235021e-05, 2.1205284e-05)
rotation = -0.4947779
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="LeftLowerLeg" type="Line2D" parent="Body" unique_id=1590485904]
position = Vector2(608, 744)
position = Vector2(-94.96416, 176.0165)
rotation = 0.0051915743
scale = Vector2(0.99999994, 0.99999994)
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="RightLowerLeg" type="Line2D" parent="Body" unique_id=29203948]
position = Vector2(800, 744)
position = Vector2(94.96724, 176.01485)
rotation = -0.0051744953
scale = Vector2(0.99999994, 0.99999994)
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="LeftUpperArm" type="Line2D" parent="Body" unique_id=744524157]
position = Vector2(704, 328)
rotation = 1.4909883
scale = Vector2(0.9999922, 0.9999922)
position = Vector2(0, -248)
rotation = 1.6184965
points = PackedVector2Array(0, 0, 0, 175)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="RightUpperArm" type="Line2D" parent="Body" unique_id=1593646765]
position = Vector2(704, 328)
rotation = -1.4639877
scale = Vector2(0.99998343, 0.99998343)
position = Vector2(0, -248)
rotation = -1.6184964
points = PackedVector2Array(0, 0, 0, 175)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="LeftLowerArm" type="Line2D" parent="Body" unique_id=2142117097]
position = Vector2(536.536, 341.3934)
rotation = 3.0600982
scale = Vector2(0.99998534, 0.99998534)
position = Vector2(-167.80888, -256.0106)
rotation = 3.1406152
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="RightLowerArm" type="Line2D" parent="Body" unique_id=1200980480]
position = Vector2(871.03986, 345.90945)
rotation = -2.8942726
scale = Vector2(0.9999745, 0.9999745)
position = Vector2(167.80891, -256.01056)
rotation = -3.1406155
points = PackedVector2Array(0, 0, 0, 200)
width = 16.0
default_color = Color(0.445488, 0.445488, 0.445488, 1)
[node name="Skeleton2D" type="Skeleton2D" parent="." unique_id=1854735445]
rotation = -0.0006991282
modification_stack = SubResource("SkeletonModificationStack2D_j4hao")
[node name="Torso" type="Bone2D" parent="Skeleton2D" unique_id=744339938]
position = Vector2(704, 576)
rest = Transform2D(1, 0, 0, 1, 704, 576)
rotation = 0.0006991282
rest = Transform2D(0.99999976, 0.00069912814, -0.00069912814, 0.99999976, 0, 0)
[node name="Head" type="Bone2D" parent="Skeleton2D/Torso" unique_id=1487357366]
position = Vector2(0, -392)
rest = Transform2D(1, 0, 0, 1, 0, -392)
position = Vector2(-0.12882307, -391.5079)
rotation = 0.000554086
scale = Vector2(0.99999994, 0.99999994)
rest = Transform2D(0.9998273, 0.0005539903, -0.0005539903, 0.9998273, -0.12882307, -391.5079)
auto_calculate_length_and_angle = false
length = 90.0
bone_angle = -90.0
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/Head" unique_id=396112729]
position = Vector2(0.050337255, -72.00002)
remote_path = NodePath("../../../../Body/Head")
[node name="LeftUpperArm" type="Bone2D" parent="Skeleton2D/Torso" unique_id=1840957808]
position = Vector2(0, -248)
rotation = -0.7853982
scale = Vector2(0.9999999, 0.9999999)
rest = Transform2D(1, 0, 0, 1, -168, -248)
metadata/_local_pose_override_enabled_ = true
rotation = 0.047700156
rest = Transform2D(0.9988364, 0.04768082, -0.04768082, 0.9988364, 0, -248)
auto_calculate_length_and_angle = false
length = 168.0
bone_angle = -180.0
[node name="LeftLowerArm" type="Bone2D" parent="Skeleton2D/Torso/LeftUpperArm" unique_id=721380545]
position = Vector2(-118.79398, -118.793945)
rotation = -1.5707964
scale = Vector2(0.9999999, 0.9999999)
rest = Transform2D(1, 0, 0, 1, -136, -136)
position = Vector2(-168, 0)
rotation = -0.04867762
rest = Transform2D(0.9987903, -0.04865717, 0.04865717, 0.9987903, -168, 0)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 0.0
metadata/_local_pose_override_enabled_ = true
bone_angle = -90.0
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperArm/LeftLowerArm" unique_id=1189277122]
position = Vector2(3.0517578e-05, 1.9073486e-06)
rotation = 4.712389
rotation = 3.1415927
remote_path = NodePath("../../../../../Body/LeftLowerArm")
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperArm" unique_id=1110605862]
rotation = 2.3561945
rotation = 1.5707964
remote_path = NodePath("../../../../Body/LeftUpperArm")
[node name="RightUpperArm" type="Bone2D" parent="Skeleton2D/Torso" unique_id=36616186]
position = Vector2(0, -248)
scale = Vector2(0.9999998, 0.9999998)
rest = Transform2D(0.9999999, 0, 0, 0.9999999, 0, -248)
metadata/_local_pose_override_enabled_ = true
rotation = -0.047700036
rest = Transform2D(0.9988364, -0.047680702, 0.047680702, 0.9988364, 0, -248)
auto_calculate_length_and_angle = false
length = 168.00006
bone_angle = 0.0
[node name="RightLowerArm" type="Bone2D" parent="Skeleton2D/Torso/RightUpperArm" unique_id=1018820563]
position = Vector2(168, 0)
rotation = -0.7853978
scale = Vector2(0.9999999, 0.9999999)
rest = Transform2D(-0.9999999, 1.5099579e-07, -1.5099579e-07, -0.9999999, 168, 0)
rotation = -1.522119
rest = Transform2D(0.048656836, -0.9987903, 0.9987903, 0.048656836, 168, 0)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 0.0
metadata/_local_pose_override_enabled_ = true
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/RightUpperArm/RightLowerArm" unique_id=1282597655]
rotation = -1.5707964
@@ -173,10 +210,75 @@ remote_path = NodePath("../../../../../Body/RightLowerArm")
rotation = -1.5707964
remote_path = NodePath("../../../../Body/RightUpperArm")
[node name="LeftUpperLeg" type="Bone2D" parent="Skeleton2D/Torso" unique_id=180737371]
position = Vector2(-9.536743e-07, 0)
rotation = 0.4947604
rest = Transform2D(0.88005984, 0.47480857, -0.47480857, 0.88005984, -9.536743e-07, 0)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 90.0
[node name="LeftLowerLeg" type="Bone2D" parent="Skeleton2D/Torso/LeftUpperLeg" unique_id=81288294]
position = Vector2(0, 200)
rotation = 1.0812275
rest = Transform2D(0.4702357, 0.8825176, -0.8825176, 0.4702357, 0, 200)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 0.0
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperLeg/LeftLowerLeg" unique_id=1673135542]
rotation = -1.5707964
remote_path = NodePath("../../../../../Body/LeftLowerLeg")
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperLeg" unique_id=62385944]
position = Vector2(1.5258789e-05, -7.6293945e-06)
remote_path = NodePath("../../../../Body/LeftUpperLeg")
[node name="RightUpperLeg" type="Bone2D" parent="Skeleton2D/Torso" unique_id=1125756606]
rotation = -0.4947779
rest = Transform2D(0.8800552, -0.47482592, 0.47482592, 0.8800552, 0, 0)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 90.0
[node name="RightLowerLeg" type="Bone2D" parent="Skeleton2D/Torso/RightUpperLeg" unique_id=1819999778]
position = Vector2(0, 200)
rotation = 2.0603998
rest = Transform2D(-0.47026652, 0.8825017, -0.8825017, -0.47026652, 0, 200)
auto_calculate_length_and_angle = false
length = 200.0
bone_angle = 0.0
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/RightUpperLeg/RightLowerLeg" unique_id=278100224]
rotation = -1.5707964
remote_path = NodePath("../../../../../Body/RightLowerLeg")
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/RightUpperLeg" unique_id=1607553157]
position = Vector2(-3.0517578e-05, 7.6293945e-06)
remote_path = NodePath("../../../../Body/RightUpperLeg")
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso" unique_id=968328845]
rotation = 3.1415927
remote_path = NodePath("../../../Body/Body")
[node name="IK_Targets" type="Node2D" parent="." unique_id=1089334064]
[node name="Right_Hand" type="Marker2D" parent="IK_Targets" unique_id=1785254130]
position = Vector2(920, 152)
position = Vector2(168, -456)
[node name="Left_Hand" type="Marker2D" parent="IK_Targets" unique_id=1085197042]
position = Vector2(496, 144)
position = Vector2(-168, -456)
[node name="Right_Leg" type="Marker2D" parent="IK_Targets" unique_id=720679106]
position = Vector2(96, 376)
[node name="Left_Leg" type="Marker2D" parent="IK_Targets" unique_id=63598929]
position = Vector2(-96, 376)
[node name="Head" type="Marker2D" parent="IK_Targets" unique_id=1347666160]
position = Vector2(0, -624)
[node name="Torso" type="Marker2D" parent="IK_Targets" unique_id=809821395]
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="IK_Targets/Torso" unique_id=1659291279]
remote_path = NodePath("../../../Skeleton2D/Torso")