Rotates the GameObject's transform so the local forward vector points at the given position.
The +Z direction of the GameObject (with respect to the GameObject's local space), which denotes forward in Unity's conventions, will pointing to the given position.
Rotates the GameObject's transform so the local forward vector points at the given position.
The +Z direction of the GameObject (with respect to the GameObject's local space), which denotes forward in Unity's conventions, will pointing to the given position.
For more information, see https://docs.unity3d.com/ScriptReference/Transform.LookAt.html