i just throw a blue reycast and if there is an obstacle the ray reflect of red color and if there is a piece of food you get a green color reflection rey and as the shape of obstaacl ray bendes it self to let you make a gusse that how is the size and shape of obstacle