mojira.dev
MCPE-169593

Damage wobble doesn't show direction of incoming damage

Summary:
Screen and hand wobble does not indicate the direction the player took damage from. This java change happened in snapshot 23w03a.

Steps to reproduce:

  1. Run all these commands:

    /summon boat
    /summon zombie MCPEBUG
    /execute at @e[name=MCPEBUG, type=zombie] run fill ~2 ~10 ~2 ~-2 ~10 ~-2 dirt
    /effect @s regeneration 1000000 100 true
  2. Go to survival.

  3. Approach the zombies from different sides (back, side, forward).

Observed results:
Screen wobble and hands are always the same.

Expected results:
Screen wobble and hands will correspond to the direction from which the player received damage.

Video:
Watch out for the hand

[media][media]

Linked issues

Attachments

Comments 14

Java report can also be found here: MC-26678

 This would be so nice for accessibility reasons. Imagine if they also added vibrations on controllers that would vibrate one side more than the other depending on where the damage is coming from. Also this is still present as of the 1.20.0.21 beta

Still Present in 1.20.0.22

It has come to my attention that mojang could add this to the game by manipulating the "setCameraShake" attribute with the posistion of the player and the attacker. It can determine if the attacker was north or north west of you and apply a shake to the player's  camera in the opposite direction.  I kinda don't know what I'm talking about though. I made a data pack to show this off. I have also attached new videos 

Confirmed in beta 1.20.0.23

4 more comments

I can confirm that this worked in version 1.0.0 and disappeared in 1.1.5:

[media]

Thank you for checking that. Just out of curiosity, what do you think made it stop working? I looked at the source files for 1.0.0 and 1.1.5 and can't see much of a difference. Most likely client side desync but im unsure 

@All_Out_Savage Could you send the data pack you used in the attached video?

Still in 1.20.30, 1.20.40 and 1.20.41

This can actually be helpful for seeing where you are being attacked from, especially for survival worlds.

[Mod] EVGENSYPERPRO

(Unassigned)

1015441

Confirmed

Multiple

vanilla-parity

1.20.10.21 Preview, 1.20.0.25 Preview, 1.20.0.20 Preview, 1.19.73, 1.20.0.23 Preview, ..., 1.20.41 Hotfix, 1.21.1 Hotfix, 1.21.30.22 Preview, 1.21.50.28 Preview, 1.21.44 Hotfix

Retrieved