mojira.dev
MCPE-229462

query.camera_rotation is aligned with the player’s head, not camera

Reproduce:

When executing the command “/camera @s minecraft:free” all animations that use “query.camera_rotation” incorrectly rotates

Expected:

Rotations are based on camera’s rotation

Attachments

Comments 3

At the start of the recording, you are in first person. How are you bypassing https://report.bugs.mojang.com/servicedesk/customer/portal/6/MCPE-219473?

MCPE-229462 (this) uses q.camera_rotation in the animation.json

if q.camera_rotation = 0 all the time, snowballs (which uses animation.actor.billboard) would not rotate properly

//animation.actor.billboard
{
"rotation":["query.camera_rotation(0)", "query.camera_rotation(1)", 0.0]
}

The custom entity with no texture uses a similar animation:

//animation.textbox.camera
{
"rotation":["q.camera_rotation(0)", "q.camera_rotation(1) - q.body_y_rotation", 0]
}

MCPE-219473 calculates query.camera_rotation in the entity.json, in “pre_animation” in “scripts”

Also this does not break MCPE-219473 because that bug is reporting first person geometry, not other entities geometries, which this bug reports

KYKY5435

(Unassigned)

1503988, 1320898

Confirmed

Multiple

26.50.25 Preview, 1.21.130.22 Preview, 1.21.130.20 Preview, 1.21.114 Hotfix, 1.21.120.25 Preview, 1.21.130.24 Preview, 1.21.130.26 Preview, 26.0.23/24 Preview

Retrieved