It will be later
Rather than casting, you need to make an interface call. Something like ‘interact prep’, that returns the location and rotation of the scene component.
You can call this on the actor when you want to interact, it will give you the info, and the player can reposition. No casting.
So it’s the same as we’re doing now, except with an interface call.
Two more steps after that
-
Get the camera level. I think that’s just a case of taking the Y ( or possibly X ) from the scene component also. ( We’re already taking the Z ).
-
Doing it smoothly.
Maybe you can make some progress on this before I come back to you. It probably won’t be for another 6 hrs or so