Hello,
I have a character and character has a shield. When character is attacked and if player is pressing down b button the shield effect gets triggered.
This gets triggered no matter in which direction the shield is facing, even if away from the enemy. I would like to limit this to maybe just 90 degrees left and 90 degrees right. I suspect this is some trigonometry solution. Tried a lot with move direction, degrees, gradiants, etc.
Any idea ? Simple solutions also welcome.
Cheers.