The Bug:
Hostile Mobs in Boats can attack at any angle. This is a repost of MCPE-16938 for Java, and this somehow relates to MC-137793.
Steps to reproduce.
Build this structure:
[media]The boat should be right in front of the fence, and the boat should face away from the fence.
Put a husk in the boat.
Stand right behind the boat and the fence while the husk is in the boat.
Take note as whether you are attacked or not.
Expected Result:
The attack angle of mobs in boats should be restricted the same as players.
Observed Result:
The attack angle of mobs in boats can go even backwards in boats, which can attack the player standing both behind the fence and the boat.
Can confirm.