Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-184530

Player movement at low speeds is biased towards cardinal directions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w20b, 20w21a, 1.17.1, 1.18.2, 22w15a, 23w51b
    • Confirmed
    • Player

      When the player is sneaking or otherwise moving more slowly than normal, the angle at which they walk gets biased to align with the closest cardinal direction. This effect is most pronounced when the player's angle is only slightly off from the nearest cardinal direction.

       

      Easy way to reproduce and visually demonstrate:

      1. Go to a flat plane (i.e. a superflat world) and set down two command blocks adjacent to each other, one Impulse and one Repeating.
      2. In the Repeating command block, put in "/execute as @a as @s run summon minecraft:armor_stand ~ ~ ~ {Small:1b}". This will produce a trail of Armor Stands when the block is powered, to record the player's movement path.
      3. Select a position in the world about 10 blocks away from the command blocks, in any cardinal direction.
      4. Create a teleport command that will put you at that specific position. Include the two extra fields for the camera angle, such that the yaw is 6 degrees off from the nearest multiple of 90, pointing you towards the command blocks. I.e. if the position you selected is directly South of the command blocks, the yaw field would need to be 174 or 186.
      5. Copy the teleport command into the Impulse command block, and then place a lever directly on either command block.
      6. Aim at the lever, lift your mouse off the table to avoid adjusting your angle manually, and activate the lever.
      7. Hold W until you are close to the lever, then stop moving and turn it off.
      8. Repeat step 6
      9. Hold W and Shift until you are close to the lever, then stop moving and turn it off
      10. Observe the difference in angle between the two lines of Armor Stands - when sneaking, your angle was flattened out towards the closest cardinal direction.

      Expected behaviour: The magnitude of the player's velocity should have no effect on the angle.

      Image of the completed set of steps, creating two lines of Armor Stands representing paths of movement:

      Edited version with labels:

            Unassigned Unassigned
            floralQuaFloral Teddy J
            Votes:
            13 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: