- Home /
set the angular velocity of nav mesh agent directly?
Hi all,
If a navmesh is attached to an object, and the object needs to rotate, it will do so. However it does not do this at a constant rate but rather with an organic acceleration/deceleration curve. For the purposes of my game I'd like to make it spin at a uniform pace. Any Idea how?
In the navmesh attributes you can set the speed (which is in fact the max speed) to any given number, or via script you can influence the actual speed via navMeshAgent.velocity. I'd like to do the same with the angular velocity (which is, again, the maximum turn speed) but I can't seem to find an attribute in the documentation to set the spin speed directly. Does anyone know what that is, or a potential work around?
Answer by tormentoarmagedoom · Sep 27, 2017 at 04:18 PM
Good day @MaxKBennett !!
You should take a look at Rigidbody-angularVelocity.
Mark the answer as correct !
Bye :D
I and the author need Nav$$anonymous$$eshAgent's angular velocity, not Rigidbody's
Your answer
Follow this Question
Related Questions
"Nav Mesh Agent" messes up simple prototype player-gameobject. What's up with that? 0 Answers
How to have a navmeshagent not move rigidbodies in my world? 0 Answers
NavMeshAgent falling through on the floor below after Carve. 1 Answer
Instantiating a prefab with navmeshagent 1 Answer
OffMesh Link and NavMesh Obstacle 1 Answer