Simulated 프로퍼티는 사용 가능한 모든 바디 타입에 공통으로 적용됩니다.이 프로퍼티를 사용하여 리지드바디 2D와 연결된 콜라이더 2D 및 조인트 2D가 2D 물리 시뮬레이션과 상호작용하는 것을 시작(활성화)하거나 중지(비활성화)할 수 있습니다.이 프로퍼티를 변경하는 것이 개별 Collider 2D 및 Joint 2D 컴포넌트를 활성화 또는 비활성화하는 것보다 메모리 및 프로세서 효율이 더 높습니다.
Simulated 프로퍼티를 활성화하면 다음과 같은 일이 발생합니다.
Simulated 프로퍼티를 비활성화하면 다음과 같은 일이 발생합니다.
Collider 2D 및 Joint 2D 컴포넌트 모두에서 물리 관련 컴포넌트를 개별적으로 활성화 및 비활성화하여 2D 물리 시뮬레이션의 개별 요소를 중지하고 시작할 수 있습니다.그러나 물리 시뮬레이션의 개별 요소를 활성화 및 비활성화하면 내부 게임 오브젝트와 물리 기반 컴포넌트가 지속적으로 생성 및 소멸되므로 메모리 사용량과 프로세서 성능이 높아질 수 있습니다.따라서 개별 컴포넌트를 비활성화하는 것보다 물리 시뮬레이션을 완전히 비활성화하는 것이 더 효율적입니다.
참고:리지드바디 2D의 Simulated 옵션을 비활성화하면, 연결된 모든 콜라이더 2D는 사실상 ‘보이지 않게’ 되며, Physics.Raycast
와 같은 물리 쿼리에서 감지할 수 없습니다.
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.