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

Player momentum on X and Z axis are cancelled separately at low values

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.17.1, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18.1, 1.18.2, 22w15a, 1.19 Pre-release 1, 1.19 Pre-release 2
    • None
    • None
    • Confirmed
    • Player

    Description

      When the player gradually slows down after moving, the player's momentum eventually snaps down to zero when they are moving slowly enough. However, the speed is not checked as the magnitude of the XZ vector, the X motion and Z motion are considered separately. This results in the player appearing to hit an invisible wall when they slow down, especially at shallow angles relative to the X or Z axis.
      To reproduce: Fly in creative mode or walk on blue ice. Point at a very shallow angle away from one of the cardinal directions and move forward. Look straight down and watch your cursor relative to the pixels of the blocks below. Stop moving and let yourself slow down. You will notice your momentum on the X or Z axis suddenly vanish, causing you to move perfectly aligned with the block grid!

      Attached is an illustration of the path you might take if you slow to a stop after moving in various directions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              EchoBlade Sebastian Cila
              Votes:
              12 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: