How to prevent weapons from penetrating the wall?

I don’t see how this helps either :frowning: All the tutorials I’ve found (and the one @Kris provided) concentrate on outlines. Would someone be so kind to explain how this helps in case of the whole object?