Hi,
I have a NavMesh agent that can be pushed off the edge by a player, but navmesh bind doesn’t allow me to do that. How can I, for instance, disable NavMesh binding on collision?
Thanks.
1 Answer
1When user pushes your enemy (containing the navmesh agent) just disable or remove the NavMeshAgent component from that enemy.
gameObject.GetComponent<NavMeshAgent>.enabled = false;
OR
Destroy(gameObject.GetComponent<NavMeshAgent>);
Then you can apply the force or whatever way you want to throw your enemy off the edge.