Allow specifying x and y offsets for gravity