Is there a way to have a NavMeshAgent ignore inclines?
I have a very small (0.04 units in height) NavMeshAgent in my scene. Its speed is currently set at 0.1 units/second. At that speed, whenever it encounters a slight incline, it usually gets stuck (and when it doesn't, its movement becomes very jerky). To get it to its destination, right now I have to either make the walking surface completely flat or increase the speed (and I want to do neither).
Is there a way to have it walk up the incline like it is just flat ground? or to just have it walk at a static speed maybe?
I think the problem may be caused by its low speed not being able to counteract the force of gravity (which I have set at the default). Ideally I could just scale everything up, but since I'm making the game for VR, I can't. I tried disabling Use Gravity on its Rigidbody while it's on the NavMesh, but then it slips around on the ground.
Is there any way to do this? Do I need to give up on using NavMesh and make up my own navigation system? Thanks in advance for any help anyone can give me!
Answer by samathon · Mar 11, 2016 at 12:05 PM
If anybody else is trying to do something similar, I managed to get it working just by making its Rigidbody Kinematic during its movement. It's not the perfect solution, but it's working for me!
Your answer
Follow this Question
Related Questions
Object reference not set to an instance of an Object? 0 Answers
How to stop NavMeshAgent from using an area? 1 Answer
NavMeshAgent and narrow paths 0 Answers
NavMesh Agent won't move 1 Answer
Use NavMesh to traverse a random path 0 Answers