# Cloning: Replicate Environments

This tutorial shows how to use the clone API to replicate sub-sections of a USD scene. Cloning creates copies in the internal physics representation (not USD prims), optimized for large-scale parallel simulation.

## Prerequisites

- Complete the {doc}`hello_world` tutorial.
- Use a USD scene with a hierarchy suitable for cloning (e.g. `/World/envs/env0`).

## Code Language

::::{tab-set}

:::{tab-item} Python
```{literalinclude} ../../tests/python_samples/clone.py
:language: python
:lines: 24-71
```

:::

:::{tab-item} C
```{literalinclude} ../../tests/c_samples/clone_c/main.c
:language: c
:lines: 25-119
```

:::

::::

## Result

After this tutorial, you can replicate environments via the clone API and simulate all copies together.
