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).
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…
OR
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.