충돌 검사는 물리 바디(리지드바디 또는 관절 바디)가 충돌을 감지하는 데 사용하는 알고리즘을 정의합니다. 알고리즘마다 정확도 수준이 다르지만 정확도가 높은 알고리즘일수록 더 많은 계산 리소스가 필요합니다.
네 가지 충돌 검사 모드로 표시되는 세 가지 알고리즘을 사용할 수 있습니다.
충돌 검사 모드 | 알고리즘 | 유용한 경우 | 유용하지 않은 경우 |
---|---|---|---|
분리 | 분리 | - 느리게 움직이는 충돌. | - 빠르게 움직이는 충돌. |
Continuous Speculative | Speculative CCD | - 빠르게 움직이는 충돌. | - 특히 높은 정확도를 요구하며 빠르게 움직이는 일부 충돌. |
Continuous | Sweep CCD | - 높은 정확도를 요구하며 빠르게 움직이는 선형 충돌. - 정적 콜라이더와만 충돌하는 물리 바디. |
- 물리 바디가 회전하면서 발생하는 충돌. - 움직이는 콜라이더와 충돌하는 물리 바디. |
Continuous Dynamic | Sweep CCD | - 높은 정확도를 요구하며 빠르게 움직이는 선형 충돌. - 움직이는 콜라이더와 충돌하는 물리 바디. |
- 물리 바디가 회전하면서 발생하는 충돌. |
각 항목에 대한 자세한 내용은 충돌 검사 모드 개요를 참조하십시오.
다음 결정 플로는 충돌 검사 타입을 선택할 때 시작점을 제공할 수 있습니다. 가장 계산 집약적이지 않은 모드부터 시작하여 가장 계산 집약적인 모드로 진행합니다.
일부 경우 물리 성능이 충돌 검사 모드와 물리 타임스텝 주파수의 조합에 따라 달라질 수 있습니다. 두 가지를 모두 실험해 보고 결과를 프로파일링하여 프로젝트에 적합한 솔루션을 찾아 보십시오.
알고리즘을 선택하려면 다음 중 하나의 방법으로 물리 바디의 Collision Detection 프로퍼티를 설정합니다.
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.