Mojira Archive
MCPE-144870

Command Tp(Teleport) work unexpected

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=-arctan(10)≈-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 meet "RX∈(-45°,45°)", 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°.

Problem links:

Is Duplicated By/Relates to

1. MCPE-131283 Since a long time now the facing command in mcbe is broken. Completely

2. MCPE-114950 Since a long time now the facing command in mcbe is broken. Completely

3. MCPE-103822 The facing feedback of "/tp" command is wrong