Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug NavMeshAgent Rotates 90 Degrees on the Z axis for some reason

Discussion in 'Editor & General Support' started by Gustavo_Playz, Mar 7, 2024.

  1. Gustavo_Playz


    Dec 10, 2020
    So I am making a game right now and while I using a navmeshagent to get the enemy to travel to certain waypoints and open doors to get to said waypoints, I encountered a very strange issue that I've never encountered before and that is sometimes on this particular waypoint it gets stuck and rotates 90 degrees on the z axis and my model just won't do anything after that, any suggestions will help as with other doors and waypoints it never seemed to do this. Here are some screenshots showing what the bug looks like and what it's normally supposed to look like (it only happens sometimes at random).
    Bug (the top image with the model lying down)
    What's normally supposed to happen (the model standing up normally).

    Game Bug.png whats normally ment to happen.png
  2. Kurt-Dekker


    Mar 16, 2013
    Make a blank scene, drag your model in.

    Most likely its rotation is something like (-90,0,0)

    If so, either make a prefab out of it with a parent object that has rotation (0,0,0) and the model as a child, then use that prefab instead of the model...


    Remake the model itself not to have that twist.

    NOTE: That twist is the standard right-hand-to-left-hand shim inserted on many/most FBX / Blender models.