public ContactFilter2D NoFilter ();

Valor de retorno

ContactFilter2D A copy of the contact filter set to not filter any ContactPoint2D.

Descripción

Sets the contact filter to not filter any ContactPoint2D.

When you are using a function that requires a ContactFilter2D, but you don't want to perform any filtering, then use this function to return a ContactFilter2D that turns off any filtering.

Call this function to set the contact filter to layerMask = Physics2D.AllLayers, minDepth = Mathf.Infinity, maxDepth = Mathf.Infinity, minNormalAngle = Mathf.Infinity and maxNormalAngle = Mathf.Infinity.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961