박스 콜라이더는 큐브 셰이프의 빌트인 콜라이더입니다. 상자와 같은 애플리케이션 내 아이템이나 선반, 계단 및 기타 큐브 셰이프의 오브젝트를 만들기 위해 늘리고 평평하게 만들 수 있는 간단한 콜라이더 셰이프로 유용하게 사용할 수 있습니다.
박스 콜라이더는 리소스 요구 사항이 적은 로우 폴리 셰이프입니다.
프로퍼티 | 설명 |
---|---|
Edit Collider | Edit Collider 버튼을 활성화하면 씬(Scene) 뷰에 콜라이더의 접촉 포인트가 표시됩니다. 이러한 접촉 포인트를 클릭하고 드래그하여 콜라이더의 크기와 셰이프를 수정할 수 있습니다. 또는 Center 및 Size 프로퍼티를 사용해도 됩니다. |
Is Trigger | 콜라이더를 이벤트의 트리거로 사용하려면 Is Trigger를 활성화합니다. Is Trigger가 활성화되면 다른 콜라이더는 이 콜라이더를 통과하여 OnTriggerEnter , OnTriggerStay , OnTriggerExit 메시지를 트리거합니다. |
Provides Contacts |
Provides Contacts를 활성화하면 항상 이 콜라이더에 대한 컨택트 정보를 생성합니다. 보통 콜라이더는 전송할 대상이 있는 경우에만 컨택트 데이터를 생성합니다. 이 경우에는 메시지 OnCollisionEnter , OnCollisionStay 또는 OnCollisionExit 가 그 대상입니다. Provides Contacts를 활성화하면 콜라이더는 항상 물리 시스템에 대한 컨택트 데이터를 생성합니다. 컨택트 생성은 리소스를 많이 소모하므로 Provides Contacts는 기본적으로 비활성화되어 있습니다. |
Material | 이 콜라이더의 마찰과 탄성을 결정하는 Physic Material 컴포넌트를 추가합니다. |
Center | 게임 오브젝트의 로컬 공간에서 각 축의 콜라이더 포지션을 정의합니다. 기본값은 (0, 0, 0)으로 설정되어 있습니다. |
Size | 각 축에 있는 콜라이더의 크기를 Unity 단위로 정의합니다. 기본값은 (1, 1, 1)로 설정되어 있습니다. |
Layer Overrides 섹션에서는 이 콜라이더에 대해 프로젝트 전체의 레이어 기반 충돌 검사 설정을 오버라이드할 수 있는 프로퍼티를 제공합니다.
프로퍼티 | 설명 |
---|---|
Layer Override Priority | 이 콜라이더 오버라이드의 우선순위를 정의합니다. 두 콜라이더에 상충되는 오버라이드가 있으면 우선순위 값이 더 높은 콜라이더의 설정이 적용됩니다. 예를 들어, Layer Override Priority가 1인 콜라이더가 Layer Override Priority가 2인 콜라이더와 충돌하면 물리 시스템은 Layer Override Priority가 2인 콜라이더의 설정을 사용합니다. |
Include Layers | 이 콜라이더를 사용하는 충돌에 어떤 레이어를 포함할지 선택합니다. |
Exclude Layers | 이 콜라이더를 사용하는 충돌에서 어떤 레이어를 제외할지 선택합니다. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.