“Unity Lookrotation lerp” Respostas de código

Unity Lookrotation lerp

 Quaternion lookOnLook =
        Quaternion.LookRotation(enemy.transform.position - transform.position);
 
 transform.rotation =
        Quaternion.Slerp(transform.rotation, lookOnLook, Time.deltaTime);
Innocent Ibis

Unity Lookrotation lerp


float smooth = 5f;

Shiny Shrew

Respostas semelhantes a “Unity Lookrotation lerp”

Perguntas semelhantes a “Unity Lookrotation lerp”

Procure respostas de código populares por idioma

Procurar outros idiomas de código