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:
- Create a new world with attached add-on and enabled cheats
- Run /summon example:bug command in chat
- Look at the entity and run command
/camera @s set minecraft:free pos ~~1.6~ rot ~~
in order to enter custom camera mode
- 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: -