2D 表面效应器沿效应器使用的碰撞体表面施加切力,从而尝试匹配沿表面的指定速度。功能类似于传送带。
用于效应器的碰撞体通常会设置为非触发器,因此其他碰撞体可与表面接触。
属性: | 功能: |
---|---|
Use Collider Mask | 是否应该使用“Collider Mask”属性?如果不应该,则所有碰撞体都默认采用全局碰撞矩阵。 |
Collider Mask | 此遮罩用于选择允许与效应器进行交互的特定层。 |
Speed | 沿表面保持的速度。 |
Speed Variation | 速度的随机增加值(0 与 Speed Variation 值之间的任何数值)将应用于速度。如果在此处输入负数,则会随机_减速_。 |
Force Scale | 允许缩放效应器尝试沿表面达到指定速度时施加的力。如果为 0,表示不施力,相当于禁用。如果为 1,表示施加全力。此属性相当于为满足指定速度而修改目标对象的速度,值越低就越慢,值越高越快。但是应慎重,因为施加全力会很容易抵消施加在目标对象上的任何其他力,例如跳跃或其他移动作用力。因此,建议设置小于 1 的值。 |
Use Contact Force | 是否应在表面和目标碰撞体之间的触点施力?使用触点作用力可以使目标对象旋转,而不使用触点作用力则不会这样。 |
Use Friction | 接触表面时是否应使用摩擦? |
Use Bounce | 接触表面时是否应使用弹性? |
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.