Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Get the direction an object is moving

Discussion in 'Scripting' started by itsTripleD, Apr 8, 2016.

  1. itsTripleD

    itsTripleD

    Joined:
    Apr 7, 2016
    Posts:
    3
    I'm trying to animate an object with mecanim and it has different animations for every direction, right now I'm using booleans to tell the animator where I'm going but it's not smooth at all, I tried looking for a way to get the direction the object is moving but no dice, can someone please help me?
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    itsTripleD likes this.
  3. itsTripleD

    itsTripleD

    Joined:
    Apr 7, 2016
    Posts:
    3