[gd_scene load_steps=10 format=3 uid="uid://bgo5hhh00twsn"] [ext_resource type="Texture2D" uid="uid://bnvm2tlvp0h7j" path="res://assets/takyoin.png" id="1_e1cbl"] [ext_resource type="Script" uid="uid://dp0f60e2t4hwq" path="res://objects/horse/dragable_body.gd" id="1_kafhg"] [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_ii5g4"] bounce = 0.5 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_l5btf"] radius = 25.0 height = 102.0 [sub_resource type="CircleShape2D" id="CircleShape2D_701xa"] radius = 22.0907 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_wkonk"] radius = 6.0 height = 48.1475 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ii5g4"] radius = 6.0 height = 59.6644 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_3rrt5"] radius = 6.0 height = 48.1475 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_701xa"] radius = 6.0 height = 56.0886 [node name="TestHorse" type="Node2D"] [node name="Body" type="RigidBody2D" parent="."] physics_material_override = SubResource("PhysicsMaterial_ii5g4") script = ExtResource("1_kafhg") [node name="Sprite2D" type="Sprite2D" parent="Body"] position = Vector2(0, -52) texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(0, 56, 82, 103) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body"] position = Vector2(-3, -53) shape = SubResource("CapsuleShape2D_l5btf") [node name="Head" type="RigidBody2D" parent="Body"] position = Vector2(0, -131) physics_material_override = SubResource("PhysicsMaterial_ii5g4") linear_velocity = Vector2(50, 0) script = ExtResource("1_kafhg") [node name="Sprite2D" type="Sprite2D" parent="Body/Head"] texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(0, 0, 82, 56) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/Head"] position = Vector2(-3, 9) shape = SubResource("CircleShape2D_701xa") [node name="NeckJoint" type="PinJoint2D" parent="Body/Head"] position = Vector2(-2, 29) node_a = NodePath("../..") node_b = NodePath("..") angular_limit_lower = -0.349066 angular_limit_upper = 0.349066 [node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/Head"] position = Vector2(-3, -21) node_a = NodePath("../..") node_b = NodePath("..") length = 10.0 rest_length = 1.0 [node name="RightLeg" type="RigidBody2D" parent="Body"] position = Vector2(14, 19) physics_material_override = SubResource("PhysicsMaterial_ii5g4") linear_velocity = Vector2(50, 0) script = ExtResource("1_kafhg") [node name="RightFoot" type="RigidBody2D" parent="Body/RightLeg"] position = Vector2(13, 48) physics_material_override = SubResource("PhysicsMaterial_ii5g4") linear_velocity = Vector2(50, 0) script = ExtResource("1_kafhg") [node name="Sprite2D" type="Sprite2D" parent="Body/RightLeg/RightFoot"] position = Vector2(-5, 10) texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(48, 211, 30, 51) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/RightLeg/RightFoot"] position = Vector2(-6, 7) rotation = -0.0108859 shape = SubResource("CapsuleShape2D_wkonk") [node name="KneeJoint" type="PinJoint2D" parent="Body/RightLeg/RightFoot"] position = Vector2(-7, -16) node_a = NodePath("../..") node_b = NodePath("..") angular_limit_lower = -0.349066 angular_limit_upper = 0.349066 [node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/RightLeg/RightFoot"] position = Vector2(-6, 39) rotation = 3.12446 node_a = NodePath("../..") node_b = NodePath("..") length = 10.0 rest_length = 1.0 stiffness = 40.0 [node name="Sprite2D" type="Sprite2D" parent="Body/RightLeg"] position = Vector2(3, 5) texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(35.1571, 154.576, 46.0369, 56.7349) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/RightLeg"] position = Vector2(-2, 5) rotation = -0.243572 shape = SubResource("CapsuleShape2D_ii5g4") [node name="HipJoint" type="PinJoint2D" parent="Body/RightLeg"] position = Vector2(-8, -23) node_a = NodePath("../..") node_b = NodePath("..") angular_limit_lower = -0.349066 angular_limit_upper = 0.349066 [node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/RightLeg"] position = Vector2(8, 41) rotation = 2.8015 node_a = NodePath("../..") node_b = NodePath("..") length = 10.0 rest_length = 1.0 stiffness = 40.0 [node name="LeftLeg" type="RigidBody2D" parent="Body"] position = Vector2(-20, 21) physics_material_override = SubResource("PhysicsMaterial_ii5g4") linear_velocity = Vector2(50, 0) script = ExtResource("1_kafhg") [node name="LeftFoot" type="RigidBody2D" parent="Body/LeftLeg"] position = Vector2(11, 47) physics_material_override = SubResource("PhysicsMaterial_ii5g4") linear_velocity = Vector2(50, 0) script = ExtResource("1_kafhg") [node name="Sprite2D" type="Sprite2D" parent="Body/LeftLeg/LeftFoot"] position = Vector2(-9, 7) texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(12, 208, 22, 53) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/LeftLeg/LeftFoot"] position = Vector2(-6, 7) rotation = -0.0108859 shape = SubResource("CapsuleShape2D_3rrt5") [node name="KneeJoint" type="PinJoint2D" parent="Body/LeftLeg/LeftFoot"] position = Vector2(-7, -16) node_a = NodePath("../..") node_b = NodePath("..") angular_limit_lower = -0.349066 angular_limit_upper = 0.349066 [node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/LeftLeg/LeftFoot"] position = Vector2(-6, 39) rotation = 3.12446 node_a = NodePath("../..") node_b = NodePath("..") length = 10.0 rest_length = 1.0 stiffness = 40.0 [node name="Sprite2D" type="Sprite2D" parent="Body/LeftLeg"] position = Vector2(3, 2) texture = ExtResource("1_e1cbl") region_enabled = true region_rect = Rect2(15, 154, 18, 55) [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/LeftLeg"] position = Vector2(3, 2) rotation = -0.0183865 shape = SubResource("CapsuleShape2D_701xa") [node name="HipJoint" type="PinJoint2D" parent="Body/LeftLeg"] position = Vector2(3, -24) node_a = NodePath("../..") node_b = NodePath("..") angular_limit_lower = -0.349066 angular_limit_upper = 0.349066 [node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/LeftLeg"] position = Vector2(3, 39) rotation = 3.14301 node_a = NodePath("../..") node_b = NodePath("..") length = 10.0 rest_length = 1.0 stiffness = 40.0