You could do a ball+slider constraint which tries to keep an object on a sphere at a certain radius. This method however does not guarantee constant acceleration as would be required for gravity.