Revert "Core/Entities: Fixed relative position calculation formula in Position::GetPositionOffsetTo"

This reverts commit 069449c501.

# Conflicts:
#	src/server/game/Entities/Object/Position.cpp
This commit is contained in:
Shauren
2025-10-14 22:08:06 +02:00
parent ffe69b4241
commit f81eebac41

View File

@@ -51,8 +51,8 @@ Position Position::GetPositionOffsetTo(Position const& endPos) const
return
{
(dx + dy * std::tan(GetOrientation())) / (std::cos(GetOrientation()) + std::sin(GetOrientation()) * std::tan(GetOrientation())),
(dy - dx * std::tan(GetOrientation())) / (std::cos(GetOrientation()) + std::sin(GetOrientation()) * std::tan(GetOrientation())),
dx * std::cos(GetOrientation()) + dy * std::sin(GetOrientation()),
dy * std::cos(GetOrientation()) - dx * std::sin(GetOrientation()),
endPos.GetPositionZ() - GetPositionZ(),
endPos.GetOrientation() - GetOrientation()
};