[gd_scene format=3 uid="uid://dr5ef3l2var2s"] [sub_resource type="GDScript" id="GDScript_f0s26"] script/source = "@tool extends Node2D @export var radius : float = 100.0: set(value): radius = value queue_redraw() @export var color : Color = Color.WHITE: set(value): color = value queue_redraw() func _draw(): draw_circle(Vector2(0,0), radius, color) " [sub_resource type="SkeletonModification2DTwoBoneIK" id="SkeletonModification2DTwoBoneIK_yvxej"] target_nodepath = NodePath("../IK_Targets/Right_Hand") flip_bend_direction = true joint_one_bone_idx = 4 joint_one_bone2d_node = NodePath("Torso/RightUpperArm") joint_two_bone_idx = 5 joint_two_bone2d_node = NodePath("Torso/RightUpperArm/RightLowerArm") [sub_resource type="SkeletonModification2DTwoBoneIK" id="SkeletonModification2DTwoBoneIK_f0s26"] target_nodepath = NodePath("../IK_Targets/Left_Hand") joint_one_bone_idx = 2 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.99998 constraint_angle_max = 304.9999 constraint_angle_invert = true constraint_in_localspace = true [sub_resource type="SkeletonModificationStack2D" id="SkeletonModificationStack2D_j4hao"] 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(-0.038591623, -463.50787) rotation = 0.000554086 scale = Vector2(0.9999999, 0.9999999) script = SubResource("GDScript_f0s26") [node name="Body" type="Line2D" parent="Body" unique_id=1290443463] 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(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(-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(-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(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(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(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(-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(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] 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.12882307, -391.5079) rotation = 0.000554086 scale = Vector2(0.9999999, 0.9999999) 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="RayCast_Aim" type="RayCast2D" parent="Skeleton2D/Torso/Head" unique_id=2000000004] position = Vector2(0, -90) target_position = Vector2(500, 0) [node name="LeftUpperArm" type="Bone2D" parent="Skeleton2D/Torso" unique_id=1840957808] position = Vector2(0, -248) 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(-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 = -90.0 [node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperArm/LeftLowerArm" unique_id=1189277122] position = Vector2(3.0517578e-05, 1.9073486e-06) rotation = 3.1415927 remote_path = NodePath("../../../../../Body/LeftLowerArm") [node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/LeftUpperArm" unique_id=1110605862] rotation = 1.5707964 remote_path = NodePath("../../../../Body/LeftUpperArm") [node name="RightUpperArm" type="Bone2D" parent="Skeleton2D/Torso" unique_id=36616186] position = Vector2(0, -248) 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 = -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 [node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/RightUpperArm/RightLowerArm" unique_id=1282597655] rotation = -1.5707964 remote_path = NodePath("../../../../../Body/RightLowerArm") [node name="RemoteTransform2D" type="RemoteTransform2D" parent="Skeleton2D/Torso/RightUpperArm" unique_id=975221467] 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 = 90.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="RayCast_Ground" type="RayCast2D" parent="." unique_id=2000000003] position = Vector2(0, 350) [node name="IK_Targets" type="Node2D" parent="." unique_id=1089334064] [node name="Right_Hand" type="Marker2D" parent="IK_Targets" unique_id=1785254130] position = Vector2(168, -456) [node name="Left_Hand" type="Marker2D" parent="IK_Targets" unique_id=1085197042] 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="RayCast_LeftLeg" type="RayCast2D" parent="IK_Targets" unique_id=2000000001] position = Vector2(-96, 200) target_position = Vector2(0, 200) [node name="RayCast_RightLeg" type="RayCast2D" parent="IK_Targets" unique_id=2000000002] position = Vector2(96, 200) target_position = Vector2(0, 200) [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")