Rotate Camera Blueprint with players
I'm making a 1vs1 fighting game with a shared camera. I want to rotate the camera so the viewangle stays on the same side of the players when they rotate around, similar to this game: https://www.youtube.com/watch?v=G7WZf6Q_QR4 (gameplay starts at ~3:37).
I've tried getting the players rotation and setting the camera actors rotation, but it doesn't seem to rotate correctly. Any suggestions would be greatly appreciated!
have a awesome weekend!
asked Nov 17 '17 at 03:05 PM in Blueprint Scripting
you need to get middle location between players, then make CameraLocation - MiddleLocation, normalize result and this will be direction vector. Now you can use one of MakeRot functions. For example MakeRotFromX and rotate camera with this rotator.
answered Nov 17 '17 at 03:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here