I have two objects in my game: a pawn that I’m controlling and an empty actor that I’m using as a checkpoint. I also have a waypoint arrow (Actor) in the HUD. The waypoint arrow is in the game environment with a ‘green screen’ and a 2DSceneCapture, such that the waypoint arrow can be rotated and shown in the UI w/o the background (only the arrow is shown).
The waypoint arrow in the HUD is supposed to point to the checkpoint, and update based on the pawn’s location and the pawn’s camera rotation. However, I can’t seem to make it work. It either spins erratically or only moves slightly based on the player’s location.
Figured it out. Once I got the rotation from ‘Find Look at Rotation’, which gives you the rotation in terms of the pawn’s location, I just needed to do some fancy maths to modify that output to put the rotation in terms of the camera.
Here’s my solution so no one needs to spend DAYS trying to figure this out: