How environmental movement constraints shape the neural code for space