fix: enemy riflemen not getting stuck on geometry

This commit is contained in:
Sara Gerretsen 2026-02-09 15:39:39 +01:00
parent 325b797b8a
commit 8d11408335

View file

@ -40,10 +40,15 @@ size = Vector3(0.2939453, 0.65130615, 0.18945313)
[sub_resource type="BoxShape3D" id="BoxShape3D_pe2i3"]
size = Vector3(0.24902344, 0.42858887, 0.2619629)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_l222e"]
radius = 0.17480469
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pe2i3"]
radius = 0.087402344
height = 1.918457
[node name="EnemyRifleman" type="EnemyRifleman" unique_id=1089821759]
collision_layer = 33
collision_mask = 33
slide_on_ceiling = false
wall_min_slide_angle = 0.0
script = SubResource("GDScript_l222e")
difficulty_weight = 0.4
@ -100,8 +105,8 @@ shape = SubResource("BoxShape3D_pe2i3")
debug_color = Color(0, 0.64368725, 0.30114147, 0.41960785)
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1155449479]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_l222e")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9618902, 0)
shape = SubResource("CapsuleShape3D_pe2i3")
[node name="StateMachine" type="StateMachine" parent="." unique_id=386183876]
unique_name_in_owner = true