Search Unity

NavMesh agent causes player to be rotated 90 degrees.

Discussion in 'Navigation' started by Dude_Mojo, Jun 10, 2017.

  1. Dude_Mojo

    Dude_Mojo

    Joined:
    Jul 14, 2016
    Posts:
    13
    I am trying to implement click to move controls for my player in unity but when I apply the navmesh agent it causes the players 3D model to be rotated 90 degrees. I am importing models from Blender 3D and I am setting the rotation on all of my objects to 0 but when I import them to unity it rotates them to 90 degrees also. Not sure what i'm doing wrong.
     
  2. Dude_Mojo

    Dude_Mojo

    Joined:
    Jul 14, 2016
    Posts:
    13
    Never mind folks I figure it out ;))
     
  3. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
    how did you do that?
     
  4. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Not him, but he probably exported his models wrong from Blender with a bad up-axis. Blender uses Z-Axis up whereas Unity uses Y-axis up, this causes mismatches with model exports unless you set your export settings right.
    This mismatch exists with many 3D programs (3DS Max also uses Y-up, as does Maya if I'm not mistaken).