I trying to make a smooth camera for this car, i tryed a lot of tutorials but dont worked for me.
These is the nodes on the car scene:

CameraBase is another scene because of this:

i used set_as_top_level to detach the child from parent, and this code for place the camera root in the car position:

but when the camera rotate ~180° to 360° from left to right (or right to left) the camera do a reverse loop and go to the correct value.
these are the CameraBase nodes:
The CameraBase root node are the X axis, and the "axis" node are the Y axis. and Z axis of the camera is aways 0.
The camera works perfect, but this 360 reverse loop is getting harder to fix (or im just dumb :v )
thank you very much to those who can help me.