0 votes

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?

Godot version v3.4.2.stable.official [45eaa2daf]
in Engine by (12 points)

1 Answer

0 votes
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.

by (89 points)
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.
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 webmaster@godotengine.org with your username.