Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-181485

Player and Humanoid hands only sway left and right instead of all direction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.60.21 Preview, 1.21.50.25 Preview, 1.21.50.24 Preview, 1.21.50.20 Preview, 1.21.40.22 Preview, 1.21.40.21 Preview, 1.21.40.20 Preview, 1.21.20.24 Preview, 1.21.20.23 Preview, 1.21.20.22 Preview, 1.21.20.21 Preview, 1.21.10.21 Preview, 1.21.0.25 Preview, 1.21.10.20 Preview, 1.21.0.26 Preview, 1.20.81 Hotfix, 1.21.10.24 Preview, 1.21.10.23 Preview, 1.21.0, 1.21.1 Hotfix, 1.21.30.22 Preview, 1.21.2 Hotfix, 1.21.30.24 Preview, 1.21.30.23 Preview, 1.21.21 Hotfix, 1.21.30, 1.21.40.23 Preview, 1.21.31 Hotfix, 1.21.41 Hotfix, 1.21.50.28 Preview
    • None
    • Community Consensus
    • Multiple
    • 1340761

      Player and Humanoid hands only sway left and right instead of all direction, this is because the X rotation animations no longer presents in the player and humanoid bob animations, which causing this issue.

      Zombies didn't uses "animation.humanoid.bob" for their bob animations, instead they uses "animation.zombie.attack_bare_hand" inside "zombie.animations.json" which has the correct bob animations and are unaffected by this issue. 

      Steps to reproduce:

      1. Change your perspective to 3rd person back/front
      2. Spawn a Zombie (any variants)
      3. Look closely to your hands bob animations, then compare it to the Zombie hands bob animations, notice your hands only sway left and right, while Zombie hands sway to all direction

      Expected results:
      Player and Humanoid hands sway to all direction, just like Zombies.

      Observed results:
      Player and Humanoid hands only sway left and right.

      Fix:
      Here the correct bob animation taken from "animation.zombie.attack_bare_hand"

      Correct animations for player.animation.json

              "animation.player.bob" : {
                  "loop" : true,
                  "bones" : {
                      "leftarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * -2.865", 0.0, "math.cos(query.life_time * 103.13244) * -2.865 - 2.865" ]
                      },
                      "rightarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * 2.865", 0.0, "math.cos(query.life_time * 103.13244) * 2.865 + 2.865" ]
                      }
                  }
              },
              "animation.player.bob.stationary" : {
                  "loop" : true,
                  "bones" : {
                      "leftarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * -2.865", 0.0, "math.cos(query.life_time * 103.13244) * -2.865 - 2.865" ]
                      },
                      "rightarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * 2.865", 0.0, "math.cos(query.life_time * 103.13244) * 2.865 + 2.865" ]
                      }
                  }
              } 

      Correct animations for humanoid.animation.json

              "animation.humanoid.bob" : {
                  "loop" : true,
                  "bones" : {
                      "leftarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * -2.865", 0.0, "math.cos(query.life_time * 103.13244) * -2.865 - 2.865" ]
                      },
                      "rightarm" : {
                          "rotation": [ "math.sin(query.life_time * 76.776372) * 2.865", 0.0, "math.cos(query.life_time * 103.13244) * 2.865 + 2.865" ]
                      }
                  }
              } 

      The correct bob animations are also available in the resourcepacks attached to the report: MCPE-181485 Fix.mcpack

        1. 1.0.0 & Latest bob comparison.mp4
          8.14 MB
          KejuGorenk
        2. Blockbench comparison.mp4
          3.67 MB
          KejuGorenk
        3. Bob Comparison 2.mp4
          2.90 MB
          KejuGorenk
        4. MCPE-181485 Fix.mcpack
          3 kB
          KejuGorenk

            Zlexy KejuGorenk
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: