Fix hit detection

This commit is contained in:
2023-09-04 01:43:20 -07:00
parent 0bd39bfd51
commit bf60e2dd9e
3 changed files with 19 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ _altFireProjectile = ExtResource("3_4eh4a")
[node name="Area3D" type="Area3D" parent="Pivot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.75657e-15, 0, 0)
collision_layer = 16
collision_mask = 4
collision_mask = 4100
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pivot/Area3D"]
transform = Transform3D(0.999665, -0.0258978, -7.10543e-15, 0.0258978, 0.999665, 0, 0, 0, 1, -0.0242356, 2.05297, -0.302385)
@@ -37,12 +37,4 @@ shape = SubResource("CapsuleShape3D_ayco3")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.06805, -0.211049)
shape = SubResource("CapsuleShape3D_fqik1")
[node name="Button" type="Button" parent="."]
offset_left = 1602.0
offset_top = 40.0
offset_right = 1872.0
offset_bottom = 178.0
text = "Hit"
[connection signal="body_entered" from="Pivot/Area3D" to="." method="OnHit"]
[connection signal="pressed" from="Button" to="." method="HitDebug"]