public ContactFilter2D NoFilter ();

Returns

ContactFilter2D 接触筛选器的副本,已设置为不筛选任何 ContactPoint2D

Description

将接触筛选器设置为不筛选任何 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.

调用此函数,以便将接触筛选器设置为 layerMask = Physics2D.AllLayersminDepth = Mathf.InfinitymaxDepth = Mathf.InfinityminNormalAngle = Mathf.InfinitymaxNormalAngle = Mathf.Infinity