determine if your character can walk through given object or not