From a9952001559b8e4f3eaeeaa8d2be8f7961526b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sun, 14 Sep 2025 16:25:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(EntityBase):=20=E7=A7=BB=E9=99=A4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=A2=B0=E6=92=9E=E5=B1=82=E4=BB=A5=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E6=84=8F=E5=A4=96=E7=A2=B0=E6=92=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将EntityBase节点的collision_layer默认值设为0,防止在没有明确设置时与其他物体发生意外碰撞 --- components/Abstracts/EntityBase.tscn | 1 + 1 file changed, 1 insertion(+) diff --git a/components/Abstracts/EntityBase.tscn b/components/Abstracts/EntityBase.tscn index 40a5a43..4d13284 100644 --- a/components/Abstracts/EntityBase.tscn +++ b/components/Abstracts/EntityBase.tscn @@ -373,6 +373,7 @@ alpha_curve = SubResource("CurveTexture_vvfxd") [sub_resource type="CircleShape2D" id="CircleShape2D_34h7q"] [node name="EntityBase" type="CharacterBody2D"] +collision_layer = 0 script = ExtResource("1_mvol6") [node name="weaponStore" type="Node2D" parent="."]