I don't really know that much about minecraft mechanics. The only thing that I could of was string. It is basically invisible and also has a hitbox.
How to prevent villagers from running into bushes