Translate based on centroids