From 19c818b36a8f06745b68e497f355c35032347c3b Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 7 May 2024 02:12:17 +0300 Subject: [PATCH] update --- tests/UnitTestColor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/UnitTestColor.cpp b/tests/UnitTestColor.cpp index 9d26fe5..3e45514 100644 --- a/tests/UnitTestColor.cpp +++ b/tests/UnitTestColor.cpp @@ -1,13 +1,13 @@ #include #include -#include - TEST(x,x) { - uml::prediction::Target target{.m_origin = {100, 0, 0}, .m_vecVelocity = {0,0, 0}, .m_IsAirborne = false}; - uml::prediction::Projectile proj = {.m_velocity = 600, .m_gravityMultiplier= 0.1}; + uml::prediction::Target target{.m_origin = {100, 0, 60}, .m_vecVelocity = {0,0, 0}, .m_IsAirborne = false}; + uml::prediction::Projectile proj = {.m_origin = {3,2,1}, .m_velocity = 400, .m_gravityMultiplier= 0.4}; auto vel = uml::prediction::ProjectilePredictor(400).PredictPointToAim(target, proj); - std::print("{}", vel.has_value()); + auto pitch = proj.m_origin.ViewAngleTo(vel.value()).x; + + // printf("pitch: %f", pitch); } \ No newline at end of file