Search Unity

make player turn only 90 degree increments

Discussion in 'Scripting' started by Jay_Adams, Nov 10, 2010.

  1. Jay_Adams

    Jay_Adams

    Joined:
    Nov 8, 2010
    Posts:
    152
    Is there an easy way to make the player only turn in 90 degree increments (I only want it to travel n,w,s,e)
     
  2. Chris-Sinclair

    Chris-Sinclair

    Joined:
    Jun 14, 2010
    Posts:
    1,326