Building the environment inside a simulation