mojira.dev
MC-48191

Players' feet visually pass through the ground slightly when sneaking

The Bug:

Players' feet visually pass through the ground slightly when sneaking.

Steps to Reproduce:

  1. Stand on the edge of a block and switch into third person.

  2. Begin sneaking and look at the bottom of your feet.

Observed Behavior:

Players' feet visually pass through the ground slightly.

Expected Behavior:

Players' feet would not visually pass through the ground slightly.

Linked issues

MC-262197 trap door visuel issue Resolved MC-261269 Sneaking visual error Resolved MC-228666 Player's Feet are Visible when Crouching in Cauldron Resolved MC-296667 The hitbox when shifting does not match the character Resolved MC-148127 Player model clips into ground when sneaking. Resolved

Attachments

Comments 36

I'm getting the feeling this is fixed in 16w04a, is that correct?

Huh, players being different heights when sneaking in multiplayer was fixed, but now they're both too low .-.

26 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Wouldn't directly fixing this make it so when sneaking under a slab, the player's head clips into the slab instead?

Not necessarily, the pose could be altered slightly so that the body is angled a bit further, lifting up the legs without lifting the head.

The fix to this is to make (MOJMAP) PlayerRenderer#getRenderOffset return Vec3d.ZERO / just removing this method entirely because it is the cause of the issue.

Avoma

(Unassigned)

Confirmed

Platform

Low

Textures and models

Minecraft 14w06b, Minecraft 14w34d, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, , 1.21.6, 1.21.7, 26.2, 26.3, 26.4 Snapshot 5

Retrieved