How todo a camera backflip

Hi

How do you make a camera do a backlip like the game descent can go upside down.

I have this code

  void SmoothLookAt () {
  Vector3 relmousePosition = mouse.position - transform.position; //mouse is something cameras looking at.
 Quaternion lookAtRotation = Quaternion.LookRotation(relmousePosition, Vector3.up);
 transform.rotation = Quaternion.Lerp(transform.rotation, lookAtRotation, smooth * Time.deltaTime);
  
   }

The camera shudders when I goto extreme up.

Thanks

Debug.Log your rotations and tell as at which angle does it act strange. I think your problem is related to how the fact that transform.rotation must be smaller then lookAtRotation, so lerp does not act strange. But when you are close to an angle of 360 they are not. This is a hunch, I did not tested your code.