Is there a built in way to point a 3D camera at a target position?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avencherus
:warning: Old Version Published before Godot 3 was released.

Was playing about with the 3D cameras, and can’t quite find an obvious property, node, or function to have the camera rotate itself to center a 3D position in it’s view.

:bust_in_silhouette: Reply From: Zylann

I think you are searching for Spatial.look_at(): http://docs.godotengine.org/en/latest/classes/class_spatial.html?highlight=look_at#class-spatial-look-at
Camera inherits Spatial so it also has this function.

Yes, there it is. Thank you. X)

avencherus | 2016-08-17 12:59