This commit is contained in:
2026-02-19 07:57:04 +03:00
parent e935155022
commit 609970cdfe

View File

@@ -70,7 +70,7 @@ namespace omath::cry_engine
{
const auto direction = (view_to - origin).normalized();
return angles::radians_to_degrees(std::atan2(direction.y, direction.z));
return angles::radians_to_degrees(-std::atan2(direction.x, direction.y));
};
};
} // namespace omath::unity_engine