diff --git a/modules/systems/locomotion/locomotion.tscn b/modules/systems/locomotion/locomotion.tscn new file mode 100644 index 0000000..3a83ad6 --- /dev/null +++ b/modules/systems/locomotion/locomotion.tscn @@ -0,0 +1,28 @@ +[gd_scene load_steps=5 format=3 uid="uid://dum1283wxnu5o"] + +[ext_resource type="Script" path="res://modules/systems/locomotion/scripts/locomotion.gd" id="1_o7b0w"] + +[sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_vrqk6"] +length = 0.4 + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_d8se7"] +height = 1.8 +radius = 0.3 + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_4vvyl"] +height = 1.7 + +[node name="Locomotion" type="CharacterBody3D"] +script = ExtResource("1_o7b0w") + +[node name="StepCollider" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.4, 0) +shape = SubResource("SeparationRayShape3D_vrqk6") + +[node name="LocomotionCollider" type="CollisionShape3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0) +shape = SubResource("CylinderShape3D_d8se7") + +[node name="ShapeCast3D" type="ShapeCast3D" parent="."] +shape = SubResource("CylinderShape3D_4vvyl") +target_position = Vector3(0, 0, 0)