On Solar, there is a very fine ledge you can nudge yourself against to avoid being infected. To pull it off, walk continuously towards the wall at a very slight angle to crawl your way forwards to a practically unhittable position. You need to keep walking towards the wall to stay up so firing is not viable. Sorry if that picture is just a link. Never done this before