Answer the question
In order to leave comments, you need to log in
Transform.LookAt() doesn't work correctly, why?
Please tell me why this script:
using UnityEngine;
public class RotatePlayer : MonoBehaviour
{
public Transform target;
void Update()
{
transform.LookAt(target, Vector3.up);
transform.position = Vector3.Lerp(transform.position, target.position, 0.01f);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question