Steps to Reproduce:
1.Enable 'view bobbing' toggle option in video.
2.walk on ground.
Observed Results:
Hand bob is too strong than Java Edition and older Bedrock Edition
Expected Results:
Must match like Java Edition and old Bedrock Edition.
We have prepared sample code for fixing bugs:
animations/player_firstperson.animation.json
"animation.player.first_person.walk": { // copy here
"loop": true,
"bones": {
// You can get closer to the Java Edition or old Bedrock Edition by preparing a 0.75x hand bob code that is the reverse of the normal direction.
// This is enough, as the hard-coded animation will play.
"rightArm": {
"position": [ "math.sin(query.walk_distance * 180) * variable.hand_bob * 0.75", 0.0, 0.0 ]
},
"leftArm": {
"position": [ "math.sin(query.walk_distance * 180) * variable.hand_bob * 0.75", 0.0, 0.0 ]
}
}
}
However, if you go underwater, the animation may be played by mistake. You can improve it by adding this code to variable.hand_bob.
entity/player.entity.json:
"variable.hand_bob = query.life_time < 0.01 ? 0.0 : variable.hand_bob + ((query.is_on_ground && query.is_alive * (1.0 - variable.swim_amount) ? math.clamp(math.sqrt(math.pow(query.position_delta(0), 2.0) + math.pow(query.position_delta(2), 2.0)), 0.0, 0.1) : 0.0) - variable.hand_bob) * 0.15;",
The cause of the bug that makes the top and bottom bobs stronger is that the hard-coded animation and the top and bottom animations coded in the vanilla resource pack are played at the same time.
The problem of stronger left and right hand bobs actually exists from 1.2. It's very annoying.
The top and bottom bob bugs only occur on some items and on empty hands.
These codes only work for items specified by 'attachable', and for empty hands (the animation when holding the item seems to be hard-coded at this time and cannot be changed).
These are just samples.
If the empty hand animation is no longer affected by the hard-coded animation, we recommend using the following code:
"animation.player.first_person.walk": {
"loop": true,
"bones": {
"rightArm": { ?)
"position": [ "math.sin(-query.walk_distance * 180.0) * variable.hand_bob * 7.0", "-math.abs(math.cos(-query.walk_distance * 180.0)) * variable.hand_bob * 15.0 + variable.short_arm_offset_left", 0.0 ]
}
}
}
Finding these files can be very annoying.
The animations player_firstperson.animation.json in the 'vanilla' folder uses 9.75, and 'vanilla_1.16.200' folder is uses 1.5.
This is the cause.
Note: It appears that the 1.14.0 bug has returned from version 1.17.0. (MCPE-54072)
Linked issues
is duplicated by 1
Attachments
Comments 7
i'm uploading a potential fix for the bobbing animation on attachable items and the player's hand.
[media]
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki
Affects 1.18.0.25 beta