From af21f9a946791c98e0f9f0d47596d5c21510b42b Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 4 May 2025 18:07:35 +0300 Subject: [PATCH] removed pow --- include/omath/projectile_prediction/target.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/projectile_prediction/target.hpp b/include/omath/projectile_prediction/target.hpp index 40e010c..7470717 100644 --- a/include/omath/projectile_prediction/target.hpp +++ b/include/omath/projectile_prediction/target.hpp @@ -16,7 +16,7 @@ namespace omath::projectile_prediction auto predicted = m_origin + m_velocity * time; if (m_is_airborne) - predicted.z -= gravity * std::pow(time, 2.f) * 0.5f; + predicted.z -= gravity * (time*time) * 0.5f; return predicted; }