My game is a 2D platfromer game with orthographic camera(of Character blueprint) and 3D characters , I want to implement a system where when a AI character kills player character, AI moves in front of the camera covering the screen space.
I tried a lot taking player character location as a reference but it’s not perfect, I think if I could get character’s camera location and rotation then this would work perfect (correct me if I am wrong).
What should I do?
How do I get camera location and rotation that can be pass to AI? (I can grab camera location and rotation but it’s relative location of Player character Blueprint)
How to set AI location and rotation towards camera? (currently I am using ‘Move Component to’ which computes only relative location and rotation)