Simulating gravity