How do you find whether Actor B is behind Actor A, based on their location/rotations? In my custom FPS setup sometimes targets get closer to the player than the gun barrel. As my projectiles spawn with a Look At Rotation I find my gun firing backwards. I need to check whether the actors are in front (180 degrees for preference, but a configurable angle would be handy) of the gun barrel. Basically a cone of vision check but using maths not line traces.
Thanks in advance!