A gravity simulator