This is rotating facing the target camFreeLook but also with the x and i want the transform to rotate only on the y. what should i cahnge/add to this working code so it will rotate only on the y ?
private void Update()
{
transform.rotation = Quaternion.RotateTowards(transform.rotation,
Quaternion.LookRotation(camfreelook.transform.position - transform.position),
rotationSpeed * Time.deltaTime);
}