mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user