Check which direction the player was hit from?

Don’t try subtracting rotations, that won’t do you any good.



What I came up with from the top of my head is this:


In this case when the Character is hit from the left, the value will be positive, is from the right — negative, both within (0,180).
Hope that helps.
3 Likes