Does anyone know how you would go about making a segmented worm-type enemy similar to the Eater of Worlds, Wyverns, or Dune Splicers from Terraria? Essentially, for those unaware, they have segments that follow the position and angle of the one in front of them without any gaps in-between them. I also want to have multiple instances of this type of enemy so arrays will not work.
Here are some reference images:
eaterofworldsfight.jpg
WyvernWiki.png
terraria-sandstorm-800x400.jpg