0 votes

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.

asked Aug 17, 2016 in Engine by avencherus (4,833 points)

1 Answer

+1 vote

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.

answered Aug 17, 2016 by Zylann (27,008 points)

Yes, there it is. Thank you. X)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.