Hitboxes don't rotate with entities. This causes lots of inaccuracies, especially with entity collision re-added:
Shooting arrows near a mob will hit it incorrectly if it's rotated
Attacking near a mob while rotated will hit the mob
Walking near the edge of a rotated mob will cause you to collide with it
The Elytra may collide with blocks when the player is rotated
The first screenshot depicts the hitbox while rotated.
The second shows how the player collides with the sheep, even from the edge.
Linked issues
is duplicated by
Attachments
Comments


Do you know how difficult it would be to code?

This is working by design and not a bug.

Can you explain in what way this is by design? How does it benefit the game? All I see it creating is anomalies.

IDK exactly why it's working this way, but in fact it's programmed like it is.
I can assume that rotating hitboxes need the use of (slow) trigonometric functions whereas static hitboxes only need (faster) square root function.

Please don't take this as rude, but all bugs are coded like they are. I can't imagine that something as simple as rotating hitboxes would cause any noticeable performance loss.
I hope you'll consider un-marking this as works as intended, because there is no real advantage to the current system, and improving it will only make the game better.
Game currently uses AABB, to change to OBB is not a super trivial thing to do, we might consider the major work involved to do it in the future however.
Until such time, this ticket is sadly WorkingAsIntended.
it would be nice if this could be fixed, but it's probobly a won't fix or works as intended