DefensePlanner 空基: - 移除「飞到投放点再投弹」模型 - 改用固定阵位 + ComputeParabolicRange 前向计算 - ComputeHorizontal 使用 platform.PosY 替代 unit.ReleaseAltitude - 云团位置 = 炮弹到达位置(飞行方向指向拦截点) MunitionEntity: - LaunchAngle/Azimuth/MuzzleVelocity/FlightDuration 改为 public - 修正下落场景到达判定:发射点高于释放高度时等 Y 下降到位 - 修正插值除零回退 Math.Max(0.01f, ...) 导致负分母炸裂 SimulationEngine: - 删除空基「到达投放点」死代码 - 删除 InterceptCalculatorAirTests 打印测试 测试: 241 通过 0 失败
12 lines
211 B
C#
12 lines
211 B
C#
using System.Collections.Generic;
|
|
using CounterDrone.Core.Algorithms;
|
|
using CounterDrone.Core.Models;
|
|
using Xunit;
|
|
|
|
namespace CounterDrone.Core.Tests
|
|
{
|
|
public class InterceptCalculatorAirTests
|
|
{
|
|
}
|
|
}
|