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

Player velocity is sometimes incorrectly read as '0'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.19.70.22 Preview, 1.19.70.21 Preview, 1.19.60.26 Preview, 1.19.51
    • Unconfirmed
    • Windows

      To preface:

      • There are several different equations used for y velocity downward acceleration
      • When a player begins to fall, one of these is selected at random
      • One of these equations incorrectly sends info indicating that the player has a velocity of '0.'

      While the idea that there are several randomly selected downward acceleration functions being used whenever a player falls, and them being chosen at random, is strange, that is not the purpsoe of this bug report.

      The attached mcpack will display a players velocity into chat every tick. If a player touches the ground, it will additionally ouput "PLAYER ON GROUND" in red for ease of visibility.

      Note that this error only occurs within the first few seconds when acceleration has begun, and will not occur additional times in the same fall.

      To reproduce this error is quite simple. Teleporting a player high enough to be able to free fall for a few seconds is enough.

      /tp @s ~ ~30 ~

      I am unable to replicate the exact scenario every time because of the random changes in the equation that I stated previously.

      The following screenshot is the only sequence of player.velocity.y values where this error will occur.

      For those unable to view the pack contents, it utilizes an animation controller running on the player. This controller runs the /scriptevent command every tick, which then outputs the player.velocity.y value into chat.

            Estrongel Estrongel
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: