1인칭 또는 3인칭 게임의 캐릭터는 바닥을 뚫고 추락하거나 벽을 통과하지 않도록 충돌에 기반한 물리적 행동이 필요합니다. 그러나 보통 캐릭터의 가속도와 행동이 물리적으로 현실성을 띠지 않기 때문에 캐릭터가 운동량에 관계 없이 가속, 감속하며 거의 즉시 방향을 바꿀 수 있습니다.
3D 물리에서 캐릭터 컨트롤러(Character Controller) 를 사용해 이런 타입의 동작을 만들어낼 수 있습니다. 이 컴포넌트로 캐릭터에게 단순한 형태와 항상 똑바로 서 있는 형태의 캡슐 형태의 콜라이더를 부여합니다. 컨트롤러는 특별한 기능을 통해 오브젝트의 속도 및 방향을 설정합니다. 그러나 진짜 콜라이더와는 다르게 리지드바디를 필요로 하지 않으며 운동량 효과도 현실적이지 않습니다.
캐릭터 컨트롤러는 씬 안에서 캐릭터가 정적 콜라이더를 투과하도록 할 수 없으며 이를 통해 바닥을 딛고 벽에 가로막히도록 합니다. 움직이는 동안 리지드바디 오브젝트를 옆으로 밀어낼 수는 있지만 다가오는 콜라이더에 밀려 가속되지는 않습니다. 이 말은 표준 3D 콜라이더를 사용하는 컨트롤러를 통해 씬 안에서 캐릭터가 걸어다니지만 캐릭터 자체는 현실적인 물리적 동작에 제한되지 않는다는 뜻입니다.
레퍼런스 페이지에서 캐릭터 컨트롤러에 대해 더 자세히 찾아볼 수 있습니다.
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.