> For the complete documentation index, see [llms.txt](https://doc.ancoraspring.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube.md).

# asCube — MuJoCo View Navigation

Navigate MuJoCo scenes with an interactive view cube and export the same geometry for 3D printing.

asCube adds a rounded view cube to the upper-right corner of a MuJoCo viewport. Drag it to orbit the scene, or click a face, edge or corner to align the camera. The same cube geometry can be exported for 3D printing.

{% hint style="info" %}
[**Online generator**](https://ancoraspring.com/ascube/): set **Cube size** in millimeters, configure **Corner cuts** and the insert holes, then choose **Download STL** or **Download MJCF**.
{% endhint %}

**GitHub repository:** <https://github.com/asMagicApp/asCube>

**asCube 0.3.2** · [Release downloads](https://github.com/asMagicApp/asCube/releases/tag/v0.3.2) · [Python API](https://github.com/asMagicApp/asCube/blob/v0.3.2/docs/api.md) · [Custom renderer guide](https://github.com/asMagicApp/asCube/blob/v0.3.2/docs/integration.md#use-an-existing-renderer)

[Open 40 mm sample in MuJoCo Live](https://live.mujoco.org/?model=https%3A%2F%2F3069436181-files.gitbook.io%2F~%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiTOs5tBJUyhQCv2lbX6A%252Fuploads%252Fgit-blob-b50e077c4811c9a6d6ab9389735c4efdac68993f%252Fascube-live-40mm.xml%3Falt%3Dmedia%26filename%3Dascube-live-40mm.xml)

## Workflows

| Workflow                                        | API or output             | Guide                                                                                                                     |
| ----------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Open and navigate a MuJoCo scene                | `launch()`                | [Quick start](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube/quick-start.md)                          |
| Integrate with your simulation loop or renderer | `Viewer`, `ViewCube`      | [MuJoCo integration](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube/simulation.md#native-integration) |
| Inspect the cube in the official browser viewer | Self-contained MJCF       | [MuJoCo Live](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube/simulation.md#open-the-sample-scene)     |
| Configure and print the physical cube           | `AsCube`, `CubeSpec`, STL | [3D printing](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube/printing.md)                             |

The native viewer provides the screen-fixed navigation cube. MuJoCo Live displays the exported cube model with its own camera controls.

<figure><img src="https://3069436181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiTOs5tBJUyhQCv2lbX6A%2Fuploads%2Fgit-blob-5bbd87105b2564316b8de392129a6e3b5fbfc838%2Fascube-viewer-v0.3.1.png?alt=media" alt="Actual MuJoCo rendering with a rounded orientation cube in the upper-right corner"><figcaption><p>Native asCube viewer. The navigation control follows the camera orientation.</p></figcaption></figure>

## Cube dimensions

`size` is the distance between opposite large planar faces, in **millimeters**. A `size=40` cube measures **40 × 40 × 40 mm**. Edge rounding and circular corner-flat positions follow the geometry parameters.

The default M6 heat-set insert reference uses **10 mm corner flats**, an **8 mm insert outside diameter** and **6 mm hole depth**. Its radial fit adjustment produces a **7.6 mm pilot hole**. [Geometry options](https://doc.ancoraspring.com/asmagic/sensors-and-simulation/ascube/printing.md#geometry-options) explains the dimensions, corner-cut switch and socket-access channels.

STL coordinates use millimeters; exported MuJoCo XML uses meters.
