HasangerGames/suroi

Objects can be destroyed while not looking at them

NoLongerLucky opened this issue · 1 comments

Describe the bug
Objects can take damage and be destroyed while the character isn't facing towards them.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an object and make sure you are touching it
  2. Rotate your character to face in the opposite direction of the object
  3. Click to punch
  4. The object will take damage even though the fists are punching in the opposite direction

Expected behavior
The object should only take damage when the player is punching toward it.

Screenshots
image
The box was damage while the player is facing away from it.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: v0.1.0

Additional context
N/A

Fixed :p