Quantcast
Channel: Answers by "hema"
Viewing all articles
Browse latest Browse all 4

Answer by hema

$
0
0
Have found a way using Quaternion.Euler. Below is the code: m_Rotation += 1.0f; transform.rotation = Quaternion.Euler(new Vector3(0,0,-m_Rotation * m_Speed)); if(m_Rotation == 360) { m_Rotation = 0; } if(m_Rotation < 60) { m_Speed = 1; } if(m_Rotation > 60 && m_Rotation < 120 ) { m_Speed = 2; } But dint get a smooth transition. Help me to improve the answer.

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>