A mechanical simulator