Invisible barrier

What happens if an animal runs into the glass?