We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f096f71 commit af21f9aCopy full SHA for af21f9a
include/omath/projectile_prediction/target.hpp
@@ -16,7 +16,7 @@ namespace omath::projectile_prediction
16
auto predicted = m_origin + m_velocity * time;
17
18
if (m_is_airborne)
19
- predicted.z -= gravity * std::pow(time, 2.f) * 0.5f;
+ predicted.z -= gravity * (time*time) * 0.5f;
20
21
return predicted;
22
}
0 commit comments