The right and left side of the minecart entity model will clip through blocks it is up against.
Steps to Reproduce:
Place down a rail block
Surround the rail in any full cube block
Place/Spawn any minecart variant on the rail
Observed & Expected Results:
❌ - The minecart's model will be visible through blocks despite possibly not being accessible
✔ - The minecart would not clip through the blocks
Screenshots/Videos:
[media]
Notes:
While both the right and left side of the minecart can be visible through blocks, only one side will be visibile at a given time for a minecart. This is because the minecart has a relatively random alignment when placed on rails.
Related issues
is duplicated by
relates to
Attachments
Comments


Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Confirmed for 16w43a.
Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Confirmed in 1.15.2 and 1.16 Pre-release 6.
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 1.16.5 and 21w08b.

Affects 1.17
Relates to MC-225398

Affects 21w40a

Fixing this means making the hitbox wider, which in turn prevents minecarts from going through 1 wide holes. Either that or switching from AABB to OBB, see MC-91376.
I'm not quite sure how expanding the hitbox would fix this, could you clarify?
I ask, because this is a visual issue with the model (unrelated to it's collision), and it's placement on rails. To me, the fix seems to be making sure the minecart's x/z position stays consistent on rails (as right now it differs slightly on the x and z axes), and to shrink the size of the model very slightly so that it does not clip.
Edit: I see what you mean, extending the hotbox to more be a rectangle rather than square. And I agree this is not the right solution. It should still be possible to solve the issue otherwise.