The barrier is implemented by two layers: one is a collision-based check (the voidout fog), another is hardcoded into Link's actor code.