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

Problems in command tp(teleport)

    XMLWordPrintable

Details

    • Unconfirmed
    • Windows

    Description

      Summary:

      The facing function of command tp will make the RX axis value obtained by the command executor inaccurate.

      Steps to Reproduce:

      Execute the following command in the chat bar.


      Note:Each time a command is executed, the RX axis value of the command executor needs to be recorded.

      /tp ~ ~ ~ facing ~ ~1 ~
      /tp ~ ~ ~ facing ~1 ~10 ~
      

      Observed Results and Expected Results: 

      Commands Use Expected Results Observed Results
      /tp ~ ~ ~ facing ~ ~1 ~ Make the target look at position "~ ~1 ~".  RX=-90°
      (Target is looking straight up)
       RX≈-45°
      (The target looks upward approximately 45°)
      /tp ~ ~ ~ facing ~1 ~10 ~ Make the target look at position "~1 ~10 ~". RX=arctan10≈-84.289°
      (The target looks upward approximately 84.289°)
      RX≈-45°
      (The target looks upward approximately 45°)
      • "RX" refers to the value on the RX axis after the command executor executes the above command.
      • The RX axis value refers to the vertical rotation Angle of the entity(X-axis rotation Angle).

      Notes:

      1. When using the facing function of command tp, if the facing position will make the RX axis value of the target not 0, the error of RX axis value will increase with the increase of |RX|.
      2. Generally speaking, when the facing position will make RX meet "RX∈[45°,90°][-90°,-45°]", the final RX axis value obtained by the target is always about 45°(or -45°).

      Attachments

        Activity

          People

            eternity_hope Happy2018new
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: