Added ray hit testing for detecting if player is in way of door
closing/open path.