mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
FCS - removed dead code (#4663)
This commit is contained in:
parent
c66f9e5144
commit
eec0c62dc5
@ -73,10 +73,6 @@ double traceBullet(double initSpeed, double airFriction, double angle, double an
|
||||
}
|
||||
|
||||
double getSolution(double initSpeed, double airFriction, double angleTarget, double distance) {
|
||||
double posTargetX, posTargetY;
|
||||
posTargetX = cos(RADIANS(angleTarget)) * distance;
|
||||
posTargetY = sin(RADIANS(angleTarget)) * distance;
|
||||
|
||||
if (traceBullet(initSpeed, airFriction, MAXELEVATION, angleTarget, distance) < 0) {
|
||||
return MAXELEVATION - angleTarget;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user