Since on the latest preview player’s hitbox height now reduces to 1.5 blocks the sneaking animation doesn't match java its still the old bedrock sneaking animation
Heres the differences:
Java:
[media]Java sneaking animation is sinking the 2 pixels of the legs making it matches the height of the slab
Bedrock (Latest Preview/Release):
[media]Bedrock Sneaking animation Still has the old animation making it 2 pixel of the head being a little big on the slab
Linked issues
is duplicated by 2
Attachments
Comments 9
I fixed the Bedrock Vanilla code yesterday. I don't know if it's accurate or not, but it almost matches the Java sneaking animation.
here is the code:
Bedrock codebase(vanillaBedrock)
"animation.player.sneaking" : {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, -2.0, 0.0 ]
},
"head" : {
"position" : [ 0.0, -1.0, 0.0 ]
},
"leftarm" : {
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"leftleg" : {
"rotation" : [ -28.0, 0.0, 0.0 ]
},
"rightarm" : {
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"rightleg" : {
"rotation" : [ -28.0, 0.0, 0.0 ]
},
"root" : {
"position" : [ 0.0, 1.25, 9.0 ],
"rotation" : [ "28.0 - this", 0.0, 0.0 ]
}
}
},
Bedrock codefixed(to match to Java)
"animation.player.sneaking": {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, -2.0, 0.75 ]
},
"head": {
"position" : [ 0.0, -1.25, -0.55 ]
},
"leftarm" : {
"position" : [ 0.0, 0.0, -1.0 ],
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"leftleg" : {
"rotation" : [ -30.0, 0.0, 0.0 ]
},
"rightarm" : {
"position" : [ 0.0, 0.0, -1.0 ],
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"rightleg" : {
"rotation" : [ -30.0, 0.0, 0.0 ]
},
"root": {
"position" : [ 0.0, -0.5, 9.0 ],
"rotation" : [ "30.0 - this", 0.0, 0.0 ]
}
}
},
If you want to see every difference between the codebase and codefixed, please look at the attachment files. I also uploaded the resourcepack.
The sneaking animation resouse pack codefixed is accurate except the head The Heads position should be "[ 0.0, -1.25, -0.55 ]" instead of "[ 0.0, -2.0, 0.0 ]" (I just playing around and edit the resouse pack and checked it properly if the codefixed resouse pack matches on java)
man, thanks for your coding my mistakes; it should be accurate now that I've uploaded the new resource pack.
Here's an animation that actually perfectly matches Java Edition, with added compatibility for custom skin heights:
"animation.player.sneaking" : {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('rightleg',1)) * -0.12241 - 1.73108", 0.0 ],
"rotation" : [ 28.64788, 0.0, 0.0 ]
},
"head" : {
"position" : [ 0.0, -0.87758, -0.47942 ]
},
"leftarm" : {
"position" : [ 0.0, 0.24483, -0.95885 ],
"rotation" : [ -5.72957, 0.0, 0.0 ]
},
"leftleg" : {
"position" : [ 0.0, -0.2, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('leftleg',1)) * 0.47942 - 1.75304" ]
},
"rightarm" : {
"position" : [ 0.0, 0.24483, -0.95885 ],
"rotation" : [ -5.72957, 0.0, 0.0 ]
},
"rightleg" : {
"position" : [ 0.0, -0.2, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('rightleg',1)) * 0.47942 - 1.75304" ]
},
"root" : {
"position" : [ 0.0, "query.get_default_bone_pivot('body',1) / -12.0", 0.0 ]
}
}
}
In my opinion with the new ability to sneak through 1.5 blocks gap, the Java version should be considered the correct one
@unknown - You can check the animation attached to the related report MCPE-170342, it matches what Java used to look like before the crouch offset.
I believe Java has the bug here: MC-48191