+90 up -90 down fix for camera view angles

This commit is contained in:
2026-04-23 02:05:54 +03:00
parent 27cb511510
commit 3eb9daf10b
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ TEST(unit_test_unreal_engine, ForwardVectorRotationPitch)
{
omath::unreal_engine::ViewAngles angles;
angles.pitch = omath::unreal_engine::PitchAngle::from_degrees(-90.f);
angles.pitch = omath::unreal_engine::PitchAngle::from_degrees(90.f);
const auto forward = omath::unreal_engine::forward_vector(angles);
EXPECT_NEAR(forward.x, omath::unreal_engine::k_abs_up.x, 0.00001f);