- Home /
Calculating the turn direction of nav mesh agent for use in blendtree
How do you calculate the turn direction of a NavMeshAgent for use to supply to the Turn float parameter in a blend tree? (As opposed to the forward float parameter)
I'm not sure what are youasking for, but. If the object have a rigidbody, you can know the direction of the object with Rigidbody.velocity (wich is a vector, is not the same a speed)
IF cheking every frame or every some frames this velocity vector, you can calculate the difference between each vector so you can know the rotation.
Your answer
Follow this Question
Related Questions
How set navmesh agent facing rotation prior to next move? 2 Answers
Can't make the manual offmeshlink work 1 Answer
Nav Mesh problem~ I need help! 0 Answers
Animator component prevents NavMeshAgent from disabling/enabling dynamically 0 Answers
How to add variables to Components (Nav Mesh Agent)? 0 Answers