Constraint to fix the center of mass of a group
I added a constraint to fix the center of mass (COM) of a group of atoms, maybe you find it interesting. It's ill-defined if someone constrains multiple groups which overlap, but works just well for reasonable setup, e.g. fixing the COM of a single molecule.