Mobs ejecting from boats (e.g. due to boat being underwater) are ejected to a seemingly random direction.
This is confusing, frustrating for players, and precludes a lot of interesting uses of boats for mob transport.
The issue is that mob ejection reuses player logic for ejecting from boats but this means it uses the direction the mob is facing (which is different from the direction the mobs appear to be facing!) which is often effectively random (except for shulkers, which causes a whole load of other unintuitive behaviour...).
Making this behaviour more consistent (e.g. by using the boat facing direction rather than mob facing direction) would make using boats to move mobs around automatically a lot more consistent and also enable their use in farm designs.
Please update the description to include steps to reproduce this issue, as well as expected VS observed results.
Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos or worlds needed to help reproduce this issue.