How do I make a 3D Camera follow the player horizontally?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Barry_stah

Is there any way I can implement a simple system for my 3D camera that is stationary but can rotate horizontally keeping the player centered, kind of like an automatic turret?

:bust_in_silhouette: Reply From: sxkod
func _turn_towards(pos):
	var ldir=pos
	look_at(ldir, Vector3(0,1,0))

How about something like above? If you give the position of the camera, it should turn the object towards the point.