I am attempting to make a string of code which takes the camera rotation, inverts it, translates it into a movement vector, and launches the player by that vector.
The end result is for a gun that has a physical knockback when being fired.
With this current code, the launch direction doesn’t work. When looking at certain angles, the launch direction is fine. However, in most cases at least one of the vectors is incorrect, launching me at a 90 degree or 180 degree angle from what is intended.
I’m very new to UE (learning games design in university), and so I don’t quite understand the maths behind these variables and why they aren’t working as intended.
Any help is appreciated!
(This takes place in the First Person preset game, in the FirstPersonCharacter Blueprint)
