Check which direction the player was hit from?
This has proven to be a real head scratcher since I am so close, but Unreal's strange -180 to 180 degree rotation system is really throwing a wrench in the works.
I have made a wall running mechanic, but I want to figure out which way to lean the camera while wall running. (For game feel)
Literally all I need to do is use the information from my "Hit" event node to figure out which side of the player the wall is one (Left or Right).
It really is that simple, but I am having so much trouble with this. I thought the obvious answer would be to take the Normal rotation of the wall surface, and then subtract the player rotation, and boom. I would have a Rotator that I can use to pinpoint exactly on which side the player was hit. But the rotation system really gets in the way of this.
Does anyone have any other methods? (Cheers)!
asked Nov 20 '18 at 12:51 PM in Blueprint Scripting
Don't try subtracting rotations, that won't do you any good.
Follow this question
Once you sign in you will be able to subscribe for any updates here