Mojira Archive
MCM-1880

camera_rotation Molang query returns player head rotation when using custom cameras

Partner Rank: 3 (Normal)

Verification Builds: 1.21.40, 1.21.50

Regression Builds: -

Summary: camera_rotation Molang query returns incorrect rotation when custom camera is activated, it uses player head rotation instead of actual camera rotation.

Affects currently Live Content: Yes

Impact: This issue affects animations that are supposed to mirror camera rotation, while custom camera is activated (e.g. during cutscenes or trailer recordings). It also affects our currently live add-on, although not in a major way, since players will have to enter custom camera in order to experience this problem.

Repro Steps:

  1. Create a new world with attached add-on and enabled cheats
  2. Run /summon example:bug command in chat
  3. Look at the entity and run command
/camera @s set minecraft:free pos ~~1.6~ rot ~~

in order to enter custom camera mode

  1. Take a few steps forward, such that you can see both entity and player, and start looking around

Observed Results: Entity rotation mirrors player head rotation (see attached video)

Expected Results: Entity would use camera rotation instead of player head rotation, and therefore would remain still while player is turning its head

Screenshots/Videos attached: Yes, video is attached

Notes: -

Unresolved

Veka0

2024-10-26, 01:12 PM

2024-10-28, 06:10 PM

2

1

1.21

-