NavMeshAgent + rigidbody.addexplosionforce - How

Hi

I have both of these working separately but if I try to use rigidbody.addexplosionforce with a NavMeshAgent it has no impact.

How do I get it to work so that when an explosion goes off next to a NavMeshAgent it applies the force to the NavMeshAgent object.

Do I have to remove or stop the agent?

Thanks
Craig

You have to temporarily turn off the NavMeshAgent with NavMeshAgent.updatePosition and NavMeshAgent.updateRotation. This will allow the force to affect it… once the force is done acting on the object, you can turn the NavMeshAgent back on.

OK thanks Stephen.

I will give this a try.

Craig