Camera facing player issue with going past 90/-90 Pitch
I'm having a hard time solving an issue trying to get my camera to face my player at all time and not change orientation at the north and south poles as shown in orange.
Current set up :
My camera hovers above the player (this works)
The rotation is updated with the [ Find Look at Rotation ]. This will face my camera at the player at all times, but I do not want the camera to rotate 180 when the pitch is -90 as shown on the picture. I want the camera to keep facing the same orientation it was earlier for example the numbers I'm currently getting for rotation are:
[-53, 180, 0] [-63, 180, 0] [-73, 180, 0] [-90, 0, 0] [-76, 0, 0] [-63, 0, 0] [-53, 0, 0]
When actually watching the ball roll up the moment it hits the north pole the camera will rotate 180 degree and the player will roll down, but I want it to be seen as the player still constantly rolling up. So the camera is rotating based off the relative direction the player is going rather than the global orientation.
asked Jul 15 '15 at 06:53 AM in Blueprint Scripting
Why not clamp your angle at 89 degree or something similar.
answered Jul 15 '15 at 09:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here