Leap/Launch pawn forward.
I'm trying to make the pawn leap / jump forward in the direction that they're facing. So if the player is looking upwards and this function happens, they will be pushed with velocity upwards (because it's the direction they're facing).
Right now, I have the code below which works, but it doesn't work for all directions, it's just forward - I'd be greatful if somebody could point me in the direction of how I can change this to work to the desired effect above.
asked Jan 15 '16 at 12:18 PM in C++ Programming
You will have to use the camera orientation instead of the actor's forward vector (forward vector is orthogonal to the xy-plane if I recall correctly), e.g.
P.S. You might need to adjust the retrieved ViewRotation's pitch to be larger than zero to handle the case when the mouse is pointing downwards.
Follow this question
Once you sign in you will be able to subscribe for any updates here