How would i make a floatie on a swimming NPC work correctly?

i want my npc to float like the second image instead of having 90% of its body underwater when swimming
image
image
(this guy is anchored)