diff --git a/include/omath/projectile_prediction/engine_traits/opengl_engine_trait.hpp b/include/omath/projectile_prediction/engine_traits/opengl_engine_trait.hpp index 3241842..59e30df 100644 --- a/include/omath/projectile_prediction/engine_traits/opengl_engine_trait.hpp +++ b/include/omath/projectile_prediction/engine_traits/opengl_engine_trait.hpp @@ -45,7 +45,7 @@ namespace omath::projectile_prediction::traits [[nodiscard]] constexpr static float get_vector_height_coordinate(const Vector3& vec) noexcept { - return vec.z; + return vec.y; } [[nodiscard]] diff --git a/include/omath/projectile_prediction/engine_traits/unity_engine_trait.hpp b/include/omath/projectile_prediction/engine_traits/unity_engine_trait.hpp index 4246ba0..c70caf8 100644 --- a/include/omath/projectile_prediction/engine_traits/unity_engine_trait.hpp +++ b/include/omath/projectile_prediction/engine_traits/unity_engine_trait.hpp @@ -45,7 +45,7 @@ namespace omath::projectile_prediction::traits [[nodiscard]] constexpr static float get_vector_height_coordinate(const Vector3& vec) noexcept { - return vec.z; + return vec.y; } [[nodiscard]]