> For the complete documentation index, see [llms.txt](https://ditoland-utplus.gitbook.io/ditoland/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ditoland-utplus.gitbook.io/ditoland/api-reference/server/collision.md).

# Collision

## Collision

서버에서 충돌 관련 설정을 처리하는 객체에요.

### **함수**

<br>

| **void SetEnableCollision(bool bIsEnable)** |
| ------------------------------------------- |

객체의 충돌 여부를 설정할 수 있어요. (충돌 여부)

\-- 샘플 --

```lua
Workspace.Cube.Collision:SetEnableCollision(false) --오브젝트의 충돌 영역을 비활성화해요.
```

\ <br>

## **사용 가능한 부모 오브젝트 기능들**

### **속성**

| **이름** | **설명** |
| ------ | ------ |

### **이벤트**

| **이름**                                                                                                 | **설명**                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**OnCollisionEvent**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)     | <p><strong>다른 객체와 충돌할 때 호출되는 이벤트에요.</strong><br><strong>연결함수 형식은 function(self, target), self 는 이벤트를 연결한 오브젝트, target 은 self 와 충돌한 오브젝트 입니다.</strong></p>            |
| [**OnBeginOverlapEvent**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)  | <p><strong>다른 객체와 겹쳐질 때 호출되는 이벤트에요.</strong><br><strong>연결함수 형식은 function(self, target), self 는 이벤트를 연결한 오브젝트, target 은 self 와 겹친 오브젝트 입니다.</strong></p>             |
| [**OnEndOverlapEvent**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)    | <p><strong>다른 객체와 겹쳐짐이 끝날 때 호출되는 이벤트에요.</strong><br><strong>연결함수 형식은 function(self, target), self 는 이벤트를 연결한 오브젝트, target 은 self 와 겹침이 끝난 오브젝트 입니다.</strong></p>     |
| [**OnOverlapUpdateEvent**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision) | <p><strong>다른 객체와 겹쳐있는 동안 매 프레임마다 호출되는 이벤트에요.</strong><br><strong>연결함수 형식은 function(self, target), self 는 이벤트를 연결한 오브젝트, target 은 self 와 겹쳐있는 오브젝트 입니다.</strong></p> |

### **함수**

| **이름**                                                                                                          | **설명**                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [**SetCollisionType**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)              | **해당 오브젝트의 충돌 타입을 지정해줘요.**                                                                                                                                                     |
| [**GetCollisionType**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)              | **해당 오브젝트의 충돌 타입을 가져올 수 있어요.**                                                                                                                                                 |
| [**SetCharacterCollisionResponse**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision) | **캐릭터와 충돌 시 어떻게 처리 할지를 설정하는 함수에요. (** [**Enum.CollisionResponse.타입**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/enums/collisionresponse) **)**                 |
| [**SetUserCollisionTypeResponse**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/common/collision)  | **유저타입 충돌 물체의 충돌 시 처리를 변경하는 함수에요. (변경 할 유저타입 충돌 이름,** [**Enum.CollisionResponse.타입**](https://ditoland-utplus.gitbook.io/ditoland/api-reference/enums/collisionresponse) **)** |
