is there a way to set a constraint to force the drag to move id1 to id20 which are my magnetic coils, to move as one object?

in EJS, i think is possible :) in Physlet i hope can ?