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

Transition out of crawling uses swimming transition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.10.23 Preview, 1.20.10.20 Preview, 1.20.73 Hotfix
    • Community Consensus
    • Multiple
    • 1046957

      The player animation controller tells the game to use the crawling animation whenever query.is_crawling is true, but that query only counts for the player's exact state and disregards transition times, which causes the animation to stop instantly. Since crawling also increases the value of variable.swim_amount, the swimming animation is used for the transition instead.

      Steps to Reproduce:

      1. Enable the Crawling experiment;
      2. Place an open trapdoor 1 block off the ground;
      3. Stand under the trapdoor and close it;
      4. Switch to third person front perspective and look up;
      5. Open the trapdoor.

      Observed Results:
      The player model is instantly standing up because of your camera rotation;

      Expected Results:
      The player model transitions from laying down to standing up.

      Screenshots/Videos attached: Yes

      Notes: This can be fixed by changing the crawling controllers in player.animation_controllers.json to use variable.swim_amount > 0.0 instead of query.is_crawling just like the swimming animation, and then using query.is_in_water to differentiate between the two, which would look like this:

      { "swimming" : "variable.swim_amount > 0.0 && query.is_in_water" },
      { "swimming.legs" : "variable.swim_amount > 0.0 && query.is_in_water" },
      { "crawling" : "variable.swim_amount > 0.0 && !query.is_in_water" },
      { "crawling.legs" : "variable.swim_amount > 0.0 && !query.is_in_water" }
      

            LateLag [Mod] LateLag
            Votes:
            9 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: