Best way to make custom gravity centers?

any one can help? i really want to do this too!