描述如何组合碰撞对象的物理材质。
摩擦力以及剩余反弹冲量会对称地应用于接触的两个碰撞体,因此每对重叠碰撞体必须具有单一的一组摩擦力和弹性设置。但是,可以将任意物理材质设置到任何碰撞体。出于该特定原因,可通过一种机制将对应于接触的每个碰撞体的两组不同属性组合成一组属性,以在解算器中使用。
通过将 Average、Maximum、Minimum 或 Multiply 指定为物理材质组合模式,可直接设置函数,该函数用于将对应于两个重叠碰撞体的设置组合成一组设置,可用于应用材质效果。
请注意,存在一种特殊情况,即两个重叠碰撞体的物理材质设置了不同的组合模式。在这种特殊情况下,将使用具有最高优先级的函数。优先级顺序如下:Average < Minimum < Multiply < Maximum。例如,如果一种材质设置了 Average,但另一种材质设置了 Maximum,那么要使用的组合函数是 Maximum,因为它具有更高的优先级。
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.