Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

It's a combination of a joint and raycasts. Every time there's not a clear shot to the joint anchor, the anchor changes to what blocked it and reduces its limit by the distance from the old to new anchor. The visuals are just a line renderer.