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.

in Engine by (5,274 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.

by (29,088 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.