# MagicaVoxel to Unity

## 1. Wrongly Placed Pivot Point

&#x20;*MagicaVoxel Version: 0.99.4.2-alpha*

### Problem

Exporting a *.vox* model to *.obj* and importing as is it in Unity will result in a weirdly placed pivot point.

![The imported character has a wrongly placed pivot point](https://2848349403-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1GLjicm2G4TkYoBqY2%2F-M1GLp69V8s_txoJT94k%2F-M1Gw8KHSRVGEkz-3jMX%2Fwrong_pivot.png?alt=media\&token=8bbc30b0-b2f7-41b3-87a5-a6b56730ac4c)

### Solution

In MagicaVoxel, before exporting the model, do the following steps:

1. Switch to *World Editor* (pressing the *Tab* key or clicking the dedicated button)
2. Open the *Move* section in the *Edit* column
3. Click the *Ground* button
4. Export the *.obj* file
5. Import it in Unity, this should fix the problem

{% embed url="<https://www.youtube.com/watch?v=0DXKi_F0gE8>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thebitcave.gitbook.io/magicavoxel-resources/exporting-models/magicavoxel-to-unity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
