Search Unity

Using Lerp Instead of Rotate

Discussion in 'Scripting' started by Hesham, Nov 15, 2009.

  1. Hesham

    Hesham

    Joined:
    May 29, 2008
    Posts:
    147
    I want my game ship to rotate around the z-axis when I press the left or right buttons. Though I can do this easily with transfrom.Rotate, I wanted to see how it could be done with lerp. Haven't had much success so far and would appreciate a nudge in the right direction.