Hi.
I used below code and want when press right key, my object rotate to y axis with Quaternion.Lerp.
Quaternion rotation = Quaternion.Lerp (transform.rotation, new Quaternion.Euler(transform.rotation.x, 360f, transform.rotation.z), Time.deltaTime * speed);
but unity give me this error:
error CS0029: Cannot implicitly convert type UnityEngine.Quaternion' to
UnityEngine.Transform’
does anyone know how can fix it?
Thanks.