删除死代码:MunitionEntity._hasExceededReleaseAltitude
This commit is contained in:
parent
2adacffe85
commit
d3248d80a3
@ -50,8 +50,6 @@ namespace CounterDrone.Core.Simulation
|
|||||||
// 空基投放:继承载机速度
|
// 空基投放:继承载机速度
|
||||||
private readonly float _carrierVelX, _carrierVelY, _carrierVelZ;
|
private readonly float _carrierVelX, _carrierVelY, _carrierVelZ;
|
||||||
|
|
||||||
// 地基:标记是否已超过释放高度
|
|
||||||
private bool _hasExceededReleaseAltitude;
|
|
||||||
// 发射点高于释放高度时,炮弹下降到达
|
// 发射点高于释放高度时,炮弹下降到达
|
||||||
private bool _arrivesDescending;
|
private bool _arrivesDescending;
|
||||||
private bool _useTimeArrival;
|
private bool _useTimeArrival;
|
||||||
@ -122,7 +120,6 @@ namespace CounterDrone.Core.Simulation
|
|||||||
if (_useTimeArrival ? _time >= FlightDuration :
|
if (_useTimeArrival ? _time >= FlightDuration :
|
||||||
((y >= ReleaseAltitude && !_arrivesDescending) || (y <= ReleaseAltitude && _arrivesDescending)))
|
((y >= ReleaseAltitude && !_arrivesDescending) || (y <= ReleaseAltitude && _arrivesDescending)))
|
||||||
{
|
{
|
||||||
_hasExceededReleaseAltitude = true;
|
|
||||||
float tPrev = _time - deltaTime;
|
float tPrev = _time - deltaTime;
|
||||||
var (px0, py0, pz0) = Kinematics.ParabolicPosition(
|
var (px0, py0, pz0) = Kinematics.ParabolicPosition(
|
||||||
_startX, _startY, _startZ, LaunchAngle, Azimuth, MuzzleVelocity, tPrev);
|
_startX, _startY, _startZ, LaunchAngle, Azimuth, MuzzleVelocity, tPrev);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user