[gd_scene format=3 uid="uid://dhgclnvdm41nl"]

[ext_resource type="PackedScene" uid="uid://cahdsj2xg25fy" path="res://entities/mecha/assets/3d/mecha-leg.blend" id="1_h7rhd"]
[ext_resource type="Script" uid="uid://brd008shv85w7" path="res://entities/mecha/mecha_leg.gd" id="1_rf6lx"]

[node name="MechaLeg" type="Node3D" unique_id=1161871766]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.673074, 0.8926722, -2.4868906)
script = ExtResource("1_rf6lx")
step_target_path = NodePath("StepTarget")
step_distance = 4.0

[node name="StepTarget" type="Marker3D" parent="." unique_id=1875541333]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.5, -2, 0)

[node name="mecha-leg" parent="." unique_id=597959552 instance=ExtResource("1_h7rhd")]
transform = Transform3D(0.83249575, -0.55403143, 0, 0.55403143, 0.83249575, 0, 0, 0, 1, -0.018096328, 0, -0.013853073)

[node name="Skeleton3D" parent="mecha-leg/Armature" parent_id_path=PackedInt32Array(597959552, 1015042136) index="0" unique_id=1015525704]
bones/0/rotation = Quaternion(-3.2671387e-08, -1.890937e-08, -0.86549115, 0.5009242)
bones/0/scale = Vector3(0.99999994, 0.99999994, 1)
bones/1/position = Vector3(7.566918e-08, 2, -1.2818292e-14)
bones/1/rotation = Quaternion(-2.992432e-08, 6.2881918e-15, -0.39635947, 0.9180954)
bones/1/scale = Vector3(1.0000002, 1.0000002, 1)
bones/2/position = Vector3(6.1847814e-08, 2.1000001, 3.2634116e-14)
bones/2/rotation = Quaternion(-2.8624317e-08, -1.0078329e-14, -0.3791404, 0.92533916)

[node name="Bone_001" parent="mecha-leg/Armature/Skeleton3D" index="0" unique_id=442116879]
transform = Transform3D(-0.91758627, -0.39747998, 0.006730333, 0.39629143, -0.9132409, 0.094576165, -0.031445723, 0.089448966, 0.9954949, 1.6874223, -1.0735638, 0.008158923)

[node name="Bone" parent="mecha-leg/Armature/Skeleton3D" index="1" unique_id=1147044007]
transform = Transform3D(-0.5367859, 0.84371114, -0.00349133, -0.8437184, -0.53678185, 0.0021121316, -9.205331e-05, 0.0040794616, 0.99999166, 0, 0, 0)

[node name="CCDIK3D" type="CCDIK3D" parent="mecha-leg/Armature/Skeleton3D" index="2" unique_id=720183381]
angular_delta_limit = 0.606676447993229
deterministic = true
setting_count = 1
settings/0/target_node = NodePath("../../../../Node/LocalTarget")
settings/0/root_bone_name = "Bone"
settings/0/root_bone = 0
settings/0/end_bone_name = "Bone.002"
settings/0/end_bone = 2
settings/0/extend_end_bone = false
settings/0/joint_count = 3
settings/0/joints/0/rotation_axis = 3
settings/0/joints/0/limitation = null
settings/0/joints/1/rotation_axis = 3
settings/0/joints/1/limitation = null
settings/0/joints/2/rotation_axis = 3
settings/0/joints/2/limitation = null

[node name="Node" type="Node" parent="." unique_id=196901171]

[node name="LocalTarget" type="Marker3D" parent="Node" unique_id=1076144472]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.3219225, -1.137534, -2.3036175)

[editable path="mecha-leg"]
