Search Unity

Plz help

Discussion in 'Scripting' started by Gameart1235, Feb 8, 2016.

  1. Gameart1235

    Gameart1235

    Joined:
    Jul 11, 2013
    Posts:
    13
    I been trying to learn how to make a movement script like this

    I know the basic of coding and coding for movement. with horizontal & vertical. and for the most part it work
    great it just I can't get the character to rotation. PLZ HELP been trying for a long time.
     
    Last edited: Feb 8, 2016
  2. Laperen

    Laperen

    Joined:
    Feb 1, 2016
    Posts:
    1,065
    Quaternion.FromToDirection or Quaternion.LookRotation should do the trick
     
  3. Gameart1235

    Gameart1235

    Joined:
    Jul 11, 2013
    Posts:
    13
    thank you for the help, I will check this out.