Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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

Discussion in 'Navigation' started by Gustavo_Playz, Mar 4, 2024.

  1. Gustavo_Playz

    Gustavo_Playz

    Joined:
    Dec 10, 2020
    Posts:
    9
    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