- Home /
Question by
mwinteringham · Jul 31, 2012 at 10:49 PM ·
rotationairandomnavmeshnavmeshagent
Can you randomise a Navmesh agents rotation
Hi all,
Simple question really, I am setting the Navmesh agent destination through the SetDestination() method and I have noticed that each time a new position is given to my Navmesh agent it always rotates the same way round. Is there some way I could possibly override this to randomly select which direction the rotation occurs?
It's mainly an aesthetic thing to make the AI look less...well... AI'y if that makes sense.
Thanks, Mark
Comment
Best Answer
Answer by mwinteringham · Aug 14, 2012 at 12:27 PM
Turns out that the rotation for an Agent is determined by which way is shorter to rotate so I don't have to worry about randomising the rotation anymore.