Basically you have to define the area the character can't pass.