Penalty for moving object?

Can i set penalty for moving object with collider and rigid body?
Using Recast graph.

I need enemies to avoid obstacles when i knock them(with grenade for example)
But still able to walk through them if no other way out.

Any info about this problem?
Or i can set penalty only to nodes?