Spawn based on player location and using player rotation
So, this is causing me few headaches, so I thought I'd ask on here... I'm trying to work out how to spawn an actor at a random location within a defined 'area' that is based on the player location (which I can do), but that also takes into account the player rotation (which I can't do!). The idea being that then I could always spawn something behind, in front of or off to one side of the player.
I can do this without taking into account the player' location - just the location, break the vector, apply some offsets and then remake the vector. This gives this:
The problem is I can't work out how to get this:
Can anyone offer any suggestions?
asked Dec 14 '14 at 06:03 PM in Using UE4
First of all look at this picture to know what I mean about
As an example, I am going to write the pseudo code for generating a random location behind the player (the orange area).
feel free to comment if you find this answer too short and need more explanation.
Follow this question
Once you sign in you will be able to subscribe for any updates here