Check if location is within navmesh (reachable)

You can check last update velocity in character movement.it is zero then it is stuck