스피어 콜라이더는 구체 셰이프의 빌트인 콜라이더입니다. 공이나 구슬과 같은 애플리케이션 내 아이템에 유용하며, 구슬, 발사체, 행성 및 기타 구형 오브젝트를 만들기 위해 늘리고 확대/축소할 수 있는 간단한 콜라이더 셰이프로도 사용할 수 있습니다. 스피어 콜라이더는 떨어지는 돌덩이처럼 굴러야 하는 요소에도 유용합니다.
스피어 콜라이더는 비교적 적은 리소스를 요구합니다.
프로퍼티 | 설명 |
---|---|
Edit Collider | Edit Collider 버튼을 활성화하면 씬(Scene) 뷰에 콜라이더의 접촉 포인트가 표시됩니다. 이러한 접촉 포인트를 클릭하고 드래그하여 콜라이더의 크기와 셰이프를 수정할 수 있습니다. 또는 Center 및 Size 프로퍼티를 사용해도 됩니다. |
Is Trigger | 이 옵션을 활성화하면 이 콜라이더는 이벤트를 트리거하는 데 사용되고 물리 엔진의 적용을 받지 않습니다. |
Provides Contacts |
Provides Contacts를 활성화하면 항상 이 콜라이더에 대한 컨택트 정보를 생성합니다. 보통 콜라이더는 전송할 대상이 있는 경우에만 컨택트 데이터를 생성합니다. 이 경우에는 메시지 OnCollisionEnter , OnCollisionStay 또는 OnCollisionExit 가 그 대상입니다. Provides Contacts를 활성화하면 콜라이더는 항상 물리 시스템에 대한 컨택트 데이터를 생성합니다. 컨택트 생성은 리소스를 많이 소모하므로 Provides Contacts는 기본적으로 비활성화되어 있습니다. |
Material | 콜라이더가 다른 콜라이더와 상호작용하는 방법을 결정하는 물리 머티리얼에 대한 레퍼런스입니다. |
Center | 오브젝트의 로컬 공간에서 콜라이더의 포지션입니다. |
Radius | 콜라이더의 크기입니다. 이는 콜라이더의 크기를 조정할 수 있는 유일한 프로퍼티이며, 특정 축을 따라 크기를 조정할 수는 없습니다(예: 구체를 다른 셰이프로 납작하게 만들기). |
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.