상수 힘(Constant Force) 은 Rigidbody 에 일정한 힘을 추가하는 퀵 유틸리티입니다. 이는 로켓과 같이, 처음부터 빠른 속도가 아닌 가속을 원하는 단일 발사 오브젝트에 적용하기 좋습니다.
프로퍼티: | 기능: |
---|---|
Force | 월드 공간에 적용될 힘의 벡터를 의미합니다. |
Relative Force | 오브젝트의 로컬 공간에 적용될 힘의 벡터를 의미합니다. |
Torque | 월드 공간에 적용될 토크의 벡터를 의미합니다. 오브젝트는 이 벡터를 중심으로 회전하기 시작합니다. 벡터가 길수록 회전 속도는 빨라집니다. |
Relative Torque | 로컬 공간에 적용될 토크의 벡터를 의미합니다. 오브젝트는 이 벡터를 중심으로 회전하기 시작합니다. 벡터가 길수록 회전 속도는 빨라집니다. |
전방으로 가속하는 로켓을 만드려면 z축 양의 방향을 따라 Relative Force 를 설정해야 합니다. 그런 다음, 리지드바디의 Drag 프로퍼티를 사용하여 로켓이 일정한 최대 속도를 초과하지 않도록 해야 합니다. 여기서 드래그 값이 높을수록 최대 속도는 낮아집니다. 리지드바디 내에서 중력 효과를 꺼서 로켓이 경로를 이탈하지 않도록 해야 합니다.
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.