Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Nav Mesh Agent resetting default transform

Discussion in 'Editor & General Support' started by Rixtter, Feb 10, 2016.

  1. Rixtter

    Rixtter

    Joined:
    Mar 31, 2014
    Posts:
    244
    Hi guys,

    Unity 5.3.1

    I have assets purchased from the store that were 90 degrees offset. No problem to rotate them in the editor, but once I add a Nav Mesh Agent, they default back to their 90 degrees during runtime.

    I have a Rigid Body on them, tried constraints but didn't work.

    Maybe a bug?

    Richard.
     
  2. Rixtter

    Rixtter

    Joined:
    Mar 31, 2014
    Posts:
    244
    Update: Doesn't appear to be the Nav Mesh Agent. It only happens when the plane is baked.

    I realise this is arguably with the imported asset, but I'm stuck... it's a bug with imported assets after you bake for a surface for the Nav Mesh Agent.
     
  3. Rixtter

    Rixtter

    Joined:
    Mar 31, 2014
    Posts:
    244
    Figured out a workaround, looks like this one may go unanswered for now.

    Create an empty object for each character, copy transform positions into empty object, make the empty object the parent. Then the Nav Mesh Agent works on the empty object holder, thus not affecting the rotation of your character.

    Bish bosh.
     
    Last edited: Feb 11, 2016