mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 17:03:27 +00:00
fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user