I’m making a line trace from the center of the camera towards the ground and rotating a turret towards that location.
It works fine until I point the camera at 90 degrees where the rotation proceeds to flip to -270 degrees and the rotation spasm out of control.
How can I avoid this?