리지드바디 2D의 동작을 정의하는 바디 타입에는 세 가지 옵션이 있습니다.해당 리지드바디 2D에 연결된 모든 콜라이더 2D는 리지드바디 2D의 바디 타입도 상속합니다.
선택한 바디 타입은 리지드바디 2D의 움직임 동작(포지션 및 회전)과 콜라이더 상호작용을 정의합니다.바디 타입이 변경되면 Unity는 다양한 질량 관련 내부 프로퍼티를 다시 계산하고, 리지드바디 2D에 연결된 콜라이더 2D에 대한 모든 기존 컨택트를 게임 오브젝트의 다음 FixedUpdate 중에 다시 평가해야 합니다.바디에 연결된 컨택트 및 콜라이더 2D의 수에 따라 바디 타입을 변경하면 성능에 배리에이션이 발생할 수 있습니다.
인스펙터 창에서 Rigidbody 2D 컴포넌트의 프로퍼티는 선택한 바디 타입에 따라 달라집니다.각 바디 타입별 프로퍼티 설정에 대한 자세한 내용은 다음 페이지를 참조하십시오.
항목 | 설명 |
---|---|
Body Type:Dynamic | 동적 바디 타입을 사용하여 리지드바디 2D가 시뮬레이션 하에서 움직이도록 설계할 수 있습니다. |
Body Type:Kinematic | 키네마틱 바디 타입을 사용하여 리지드바디 2D가 명시적인 사용자 제어를 통해서만 시뮬레이션 하에서 움직이도록 설계할 수 있습니다. |
Body Type:Static | 정적 바디 타입을 사용하여 리지드바디 2D가 시뮬레이션 하에서 움직이지 않도록 설계할 수 있습니다. |
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.