# Coordinate

## 좌표계 ⚓

3D 또는 2D 공간에서 오브젝트의 위치와 회전, 크기(스케일)를 표현하기 위해 사용해요.

#### 디토랜드의 좌표계

<figure><img src="/files/5CW42LyBpode5VCOtVK0" alt=""><figcaption></figcaption></figure>

### 3D 좌표와 2D 좌표

#### **3D 좌표 📦**

3D 공간에서 사용되는 좌표로 월드 오브젝트에서 사용해요.

3D 좌표는 **X, Y, Z** 순서로 표시해요.

<figure><img src="/files/1rWyuswvWqq7aoQDawIx" alt=""><figcaption></figcaption></figure>

3D 좌표는 위치, 회전, 크기, 스케일로 구성되어 있어요.

#### **2D 좌표 🖼️**

2D 공간에서 사용되는 좌표로 Widget에서 사용해요.

2D 좌표는 **X,Y** 순서로 표시해요.

<figure><img src="/files/G3OYwsvxoBleOdnm0fql" alt=""><figcaption></figcaption></figure>

2D 좌표는 UI 위치, UI 회전, UI 스케일로 구성되어 있어요.

### 좌표축 🔍

오브젝트의 위치, 회전, 크기(스케일)를 표현할 때 사용되는 축이에요.

💡 **Tip**. 좌표축에서 빨간색은 전방(Forward)를 의미해요.

<figure><img src="/files/5sl9x3b6G6cpFWNRPqOB" alt=""><figcaption></figcaption></figure>

## 월드 좌표 / 로컬 좌표 🕶️

#### 월드 좌표

**월드 기준**으로 오브젝트의 위치/회전/크기(스케일)를 나타내는 좌표에요.

월드의 방향은 변화하지 않기 때문에 월드 좌표에서 좌표축은 고정된 방향으로 표시돼요.

<figure><img src="/files/MKIzbAf9cMC77LSIghVm" alt=""><figcaption></figcaption></figure>

#### 로컬 좌표

부모를 기준으로 **상대적인** 위치/회전/크기(스케일)를 나타내는 좌표에요.

로컬 좌표에서 좌표축은 오브젝트의 회전 방향에 맞춰 표시돼요.

<figure><img src="/files/Uu9wOYaxZpr7IkskUkMD" alt=""><figcaption></figcaption></figure>

#### 자식 오브젝트의 좌표

자식 오브젝트는 상대적인 값인 로컬 좌표로 표시돼요.

<figure><img src="/files/ivzeDNtU195UIWsusN80" alt=""><figcaption></figcaption></figure>

좌표값 중에서 크기는 월드 좌표로만 표시돼요.

(위치, 회전, 스케일만 로컬 좌표로 표시될 수 있어요.)

💡 **Tip**. 스케일을 이용하려면 그룹 오브젝트를 사용해야 해요.

#### 공간 타입 표시 변경 🎛️

위치/회전/크기 프로퍼티에 마우스를 우클릭하면 오브젝트별로 공간 타입 설정을 설정할 수 있어요.

<figure><img src="/files/putGa6Orpw2zvqTIMAJc" alt="" width="375"><figcaption></figcaption></figure>

위치/회전/크기 프로퍼티에 마우스를 호버하면 툴팁으로 동작 방식을 확인할 수 있어요.

<figure><img src="/files/N98wfVQPcKx6muDK2BuL" alt="" width="563"><figcaption></figcaption></figure>

💡 **Tip**. 설정한 모든 공간 타입을 초기화하려면 파일 메뉴 - 공간타입 초기화를 클릭해보세요.

<figure><img src="/files/lXRjht8ecsBYGC3OkcFm" alt="" width="375"><figcaption></figcaption></figure>

## 좌표축 표시 전환 ⚙️

메뉴 바의 **좌표축 전환** 버튼으로 오브젝트를 편집할 때 사용할 **좌표 이동 단위**와 **좌표축 표시**를 월드 또는 로컬로 전환할 수 있어요.

<figure><img src="/files/dkn6jMyaipnUOXpTnQSp" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/eDeEehvpAnK7rk17fH9F" alt="" width="375"><figcaption></figcaption></figure>

## 중심점 🚩

오브젝트의 중심점을 의미해요.

중심점을 기준으로 위치, 회전, 크기(스케일)이 변화해요.

### 오브젝트의 중심점 (Pivot)

좌표축이 표시되는 위치로 중심점의 위치를 알 수 있어요.

<figure><img src="/files/aBLNS0So1bP5kJNMMAlo" alt=""><figcaption></figcaption></figure>

### 💡 Tip. Pivot 변경

오브젝트의 Pivot은 변경할 수 없는 고유값이지만 그룹 오브젝트를 이용해서 중심점을 다르게 \
사용할 수 있어요.

1. 오브젝트의 중심점을 대신할 그룹을 준비해요.

   <figure><img src="/files/bZP2bfs1X6m5tFPwURYp" alt=""><figcaption></figcaption></figure>

2. 중심점으로 사용할 곳에 그룹을 배치해요.

   <figure><img src="/files/NiGh4Sw5vHwEM6LVXqSe" alt=""><figcaption></figcaption></figure>

3. 오브젝트를 그룹의 자식으로 옮겨요.

   <figure><img src="/files/dLQJEFlmPO6Z4nu2jTGY" alt=""><figcaption></figcaption></figure>

4. 이제 그룹을 제어하면 변경된 Pivot을 사용할 수 있어요.

   <figure><img src="/files/GV4gYfm5mE2tR6mJGQ08" alt=""><figcaption></figcaption></figure>


---

# 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://ditoland-utplus.gitbook.io/ditoland/manual/coordinate.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.
