- Home /
updateUpAxis code error
Hello,
I've been suggested to use NavMeshAgent.updateUpAxis to prevent the 3d object from falling to it's original rotation and ignore my settings. But in the code I receive this massage:
UnityEngine.AI.NavMeshAgent does not contain a definition for updateUpAxis and no extension method updateUpAxis of type `UnityEngine.AI.NavMeshAgent' could be found. Are you missing an assembly reference?
How can it be if it actually listed in Unity documentation?
Answer by korbul · Jul 27, 2017 at 10:42 AM
What unity version are you using?
From the documentations it seems that this method is available from unity 5.6 and up.
Yeah you right @korbul I switched to unity 5.6 and now no error in the code, but still the cart changed rotation. I don't understand, I thought this line was to avoid navmesh agent change rotation. Pictures: Right and Wrong
Your answer
Follow this Question
Related Questions
How would I interpret angular displacement from target rotation to max out at 180°? 3 Answers
rotate axis of movement 0 Answers
C# - Rotation around object axis 2 Answers
Get angle around a specified axis. 1 Answer
Rotation gameobject 0 Answers