표면 이펙터 2D는 표면을 따르는 특정 속도를 매치시키기 위해 이펙터에 사용되는 콜라이더 표면을 따라 탄젠트 힘을 적용합니다. 이는 컨베이어 벨트와 유사합니다.
이펙터와 사용하는 콜라이더는 일반적으로 비트리거로 설정되며 다른 콜라이더는 표면에 접촉될 수 있습니다.
프로퍼티 | 기능 |
---|---|
Use Collider Mask | Collider Mask 프로퍼티를 사용하려면 이를 활성화합니다. 활성화되지 않은 경우 글로벌 충돌 매트릭스가 모든 콜라이더 2D의 기본으로 사용됩니다. |
Collider Mask | 이펙터와 상호작용할 특정 레이어를 선택하는 데 사용되는 마스크입니다. 이 옵션은 Use Collider Mask를 선택한 경우에만 표시됩니다. |
Speed | 표면을 따라 유지할 속도를 입력합니다. |
Speed Variation | 여기에 값을 입력하면 속도가 무작위로 증가하며, Unity는 0과 Speed Variation 값 사이에서 무작위 숫자를 선택합니다. 여기에 음수를 입력하면 속도가 무작위로 감소하며, Unity는 0과 Speed Variation 값 사이에서 무작위 음수를 선택합니다. |
Force Scale | 값을 입력하여 이펙터가 표면을 따라 지정된 속도를 맞추려고 할 때 적용되는 힘의 스케일을 조정합니다. 이 값이 0이면 Unity는 힘을 적용하지 않습니다. 이 값이 1이면 Unity가 최대 힘을 적용합니다. 참고: 1을 입력하여 최대 힘을 적용하면 타겟 오브젝트에 적용되는 다른 모든 힘을 상쇄하여 원치 않는 움직임이나 동작이 발생할 수 있습니다. 이 문제를 방지하려면 1보다 작은 값을 입력하는 것이 좋습니다. |
Use Contact Force | 표면과 타겟 콜라이더 사이의 접점에 Unity가 힘을 적용하도록 하려면 이 옵션을 활성화합니다. 접촉력을 활성화하면 타겟 오브젝트가 표면과 접촉할 때 회전할 수 있습니다. |
Use Friction | 이 옵션을 활성화하면 콜라이더와 접촉하는 표면 사이에 마찰이 발생합니다. |
Use Bounce | 이 옵션을 활성화하면 콜라이더와 접촉하는 표면 사이에 바운스가 발생합니다. |
SurfaceEffector2D
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.