A jumping behaviour induced by an obstacle