From f20578bc4b559b877b5cc18bee0ff2540eedc192 Mon Sep 17 00:00:00 2001 From: atdunbg Date: Thu, 8 Oct 2026 22:48:20 +0800 Subject: [PATCH] =?UTF-8?q?TestShoot=20=E5=BC=B9=E5=A4=B4=E5=8D=8A?= =?UTF-8?q?=E5=BE=84=200.08=E2=86=920.12=20=E5=8F=8D=E9=9A=A7=E7=A9=BF?= =?UTF-8?q?=EF=BC=9A=E7=A6=BB=E6=95=A3=E6=A3=80=E6=B5=8B=E4=B8=8B=E8=96=84?= =?UTF-8?q?=E6=9D=BF=E7=A2=B0=E6=92=9E=E7=AA=97=E5=8F=A3=E9=A1=BB=E5=A4=A7?= =?UTF-8?q?=E4=BA=8E=E6=AF=8F=E6=AD=A5=E4=BD=8D=E7=A7=BB=EF=BC=88=E6=97=A0?= =?UTF-8?q?=20CCD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/scripts/TestShoot.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/App/scripts/TestShoot.cpp b/App/scripts/TestShoot.cpp index 8222f26..f67c5a8 100644 --- a/App/scripts/TestShoot.cpp +++ b/App/scripts/TestShoot.cpp @@ -141,7 +141,11 @@ namespace { pb.Field("BulletSpeed", &m_BulletSpeed, 25.0f); // 枪口初速 m/s pb.Field("MuzzleOffset", &m_MuzzleOffset, 0.6f); // 出膛距离 m pb.Field("FireCooldown", &m_FireCooldown, 0.15f); // 最小射击间隔 s - pb.Field("BulletRadius", &m_BulletRadius, 0.08f); // 弹头碰撞半径 m + pb.Field("BulletRadius", &m_BulletRadius, 0.12f); // 弹头碰撞半径 m + // 半径 0.12 的反隧穿账:物理离散检测(无 CCD),检测带 = + // 半径 + 障碍半厚;薄板(如 0.2m 墙)窗口 2*(0.12+0.1)=0.44m + // > 每步进位移 0.42m(25 m/s @ 1/60),垂直命中保证检出。 + // 半径越小高速弹越易整步跨过薄碰撞体(无接触=无事件) } void OnUpdate(f32 dt) override {