From 9035618fd795322935dafc31163107cfddf4ea51 Mon Sep 17 00:00:00 2001 From: swrring Date: Thu, 7 May 2026 16:29:02 +0900 Subject: [PATCH] =?UTF-8?q?BT5-Dev=20#23:=20STOMP=5FMIN=5FDY=200.8?= =?UTF-8?q?=E2=86=921.0=20(Enemy=20=EB=A8=B8=EB=A6=AC=20=EC=A0=95=ED=95=A9?= =?UTF-8?q?=C2=B7=EB=B0=9C=20=EB=8B=BF=EB=8A=94=20=EB=8A=90=EB=82=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Gameplay/PlayerEnemyCollision.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Gameplay/PlayerEnemyCollision.cs b/Assets/Scripts/Gameplay/PlayerEnemyCollision.cs index 62223a8..7aea006 100644 --- a/Assets/Scripts/Gameplay/PlayerEnemyCollision.cs +++ b/Assets/Scripts/Gameplay/PlayerEnemyCollision.cs @@ -21,9 +21,10 @@ namespace Platformer.Gameplay /// BT5-Dev #16 — EnemyController.Update에서 측정한 Player·Enemy y 차 (밟기 판정 영역). public float dyAtCollision; - // BT5-Dev #20 — Enemy.prefab 직렬화 영역 우회 영역 const 영역 - // Player.height 1.15 + Enemy.height 1.26 → 발 닿는 영역 dy ≈ 1.0 - const float STOMP_MIN_DY = 0.8f; + // BT5-Dev #23 — Player 발이 Enemy 머리에 정확히 닿는 영역 dy ≈ 1.0 + // Player.transform.y - 0.475(발) = Enemy.transform.y + 0.63(머리) → dy = 1.105 + // PD 의도 — 발 닿는 느낌. 1.0 = 약간 여유 (정확 1.1보다 약간 빨리 발동 → 발 닿기 직전) + const float STOMP_MIN_DY = 1.0f; PlatformerModel model = Simulation.GetModel();