The residues first get wrapped and then the entity. The wrapping is per residue and each residue gets wrapped according to the position of its center of mass