removed useless stuff

This commit is contained in:
2024-12-16 12:31:56 +03:00
parent 2488388aa4
commit ce9da76413
12 changed files with 13 additions and 89 deletions

View File

@@ -58,7 +58,7 @@ namespace omath::prediction
return std::nullopt;
root = std::sqrt(root);
const float angle = std::atan((std::pow(projectile.m_launchSpeed, 2.f) - root) / (bulletGravity * distance2d));
const float angle = std::atan((launchSpeedSqr - root) / (bulletGravity * distance2d));
return angles::RadiansToDegrees(angle);
}