- Home /
NavMeshAgent velocity while not moving
Hello there, im using NavMeshAgent in my current project and I wanted to add some kind of knockback and I find out that applying velocity on my own works quite good and as I want but I found out that it doesn't work when I'm not moving. Is there any way to bypass it? Or is there a better solution? Normally I would use Rigidbody (AddForce) but I know there are problems when both NavAgent and Rigidbody (non kinematic) are enabled. Any idea or solution is appreciated. Thanks!
Have you looked at this answer? http://answers.unity3d.com/questions/340049/knockback-using-navmesh.html
The solution to make a knockback by SetDestination and then correct it with animation just doesn't feel right to me (changing the speed and acceleration then I got to disable his movement controller to not cancel the knocback and then setting it back to normal) so the only solution is to just disable playersNav$$anonymous$$eshAgent and then apply the force and then turn on the nav$$anonymous$$eshAgent again which I'm currently doing. But I will still be looking for better solutions, cheers anyway!
Your answer
Follow this Question
Related Questions
NavMeshAgent sliding/accelerating knockback, not teleport 1 Answer
Knockback not working properly 1 Answer
Velocity powered rigidbody on a moving platform without parenting. 3 Answers
Vertical push doesn't let the object fall down instantly 1 Answer
mass spawning rigid bodies but only some keep the given velocity 0 Answers