2D 平台效应器实施各种“平台”行为,例如单向碰撞、消除侧向摩擦/弹性等。
用于效应器的碰撞体通常不会设置为触发器,因此其他碰撞体可与其碰撞。
属性: | 功能: |
---|---|
Use Collider Mask | 是否应该使用“Collider Mask”属性?如果不应该,则所有碰撞体都默认采用全局碰撞矩阵。 |
Collider Mask | 此遮罩用于选择允许与效应器进行交互的特定层。 |
Use One Way | 是否应该使用单向碰撞行为? |
Use One Way Grouping | 确保单向行为禁用的所有触点都作用于所有碰撞体。在穿过平台的对象上使用多个碰撞体并且这些碰撞体需要整体作为一个组一起行动时,此设置非常有用。 |
Surface Arc | 这是一个弧的角度,以局部“向上”方向为中心,用于定义不允许碰撞体通过的表面。该弧以外的任何元素都视为用于单向碰撞。 |
Use Side Friction | 是否应该在平台两侧使用摩擦? |
Use Side Bounce | 是否应该在平台两侧使用弹性? |
Side Arc | 这是一个弧的角度,以效应器局部“向左”和“向右”方向为中心,用于定义平台两侧。该弧以内的所有碰撞法线都视为用于“侧面”行为。 |
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.