mojira.dev
MC-112474

The rotation vector of projectiles has negated x and y values

The rotation of projectiles (arrows, snow balls, tridents, ...) is incorrect, its vector has negated x and y values. As you can see in the attached images, the rotation arrows/tridents have does not match the model/travel direction. The model represents the correct angle for the shot. The facing direction should match the direction that the projectile would travel in.

Steps to reproduce:

  • Enable hitboxes. (F3+B)

  • Spawn a projectile of any kind (eg by throw tridents or shoot arrows).

  • Inspect the facing line of the projectile.

Expected result:

The facing line follows the direction of the projectile, matching the model.

Actual result:
The facing line does not follow the direction the projectile moves/is visually facing.

This screenshot was taken while looking down from above. The x axis is vertical and goes upwards, the z axis is horizontal and goes to the right.

[media]

Linked issues

MC-50450 Teleporting to arrow - wrong direction Resolved MC-74632 Projectile facing doesn't match direction of movement Resolved MC-113892 The orientation of arrows is opposite to its sight direction on the x-axis and y-axis Resolved MC-130024 Snowballs, arrows and other projectiles don't "face" the direction they're flying in Resolved MC-145515 Arrow's rotational coordinates do not make sense. Resolved

Attachments

Comments 22

Can confirm for 1.15.2 and 20w18a.

The issue is duplicated by MC-182313.

Can confirm in 20w49a.

Can confirm in 20w51a.

Can confirm in 21w03a.

12 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

This issue also affects bedrock editions, I have created MCPE-168108 to describe the issue there.

Requesting ownership as the current reporter has done nothing since 2019; additionally, if granted, then I'll keep track of all rotation vector issues on both MC and MCPE. ^^

Still present in 1.21.4

Adrodoc55

[Mod] turbo

(Unassigned)

Confirmed

Platform

Normal

Debug, Hitboxes, Projectiles

arrow, direction, facing, rotation

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, ..., 24w05a, 1.20.5, 1.20.6, 1.21, 1.21.1

Retrieved