Camera facing player issue with going past 90/-90 Pitch

50243-pitch+issue.png

I’m having a hard solving an issue trying to get my camera to face my player at all 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.

Is you camera in your BP, or have you made a Camera BP?

Hi

Either way,

Why not clamp your angle at 89 degree or something similar.

I’ve tried both ways a BP consisting of a camera and I’ve tried including the camera within the world’s BP

That doesn’t help the over all goal because the player is capable of crossing 90 degree and by clamping it there will prevent movement pass that angle if that is what you are talking about. The player is suppose to be able to free roam on the world, so clamping it would prevent player movement.

1 Like