rstrict movement beyond mesh