public static intOverlapCollider(Collider2Dcollider,ContactFilter2DcontactFilter, Collider2D[]results); 参数 collider定义用于查询其他碰撞体重叠的区域的碰撞体。 results用于接收结果的数组。该数组的大小决定可返回的结果的最大数量。 layerMask筛选器,用于检查仅在指定层上的对象。
Physics2D.OverlapCollider public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); 参数 collider 定义用于查询其他碰撞体重叠的区域的碰撞体。 contactFilter 接触筛选器,用于以不同方式筛选结果,例如按层遮罩、Z 深度。注意,法线角度不用于重叠测试。 results ...
public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); 参数 collider 定义用于查询其他碰撞体重叠的区域的碰撞体。 contactFilter 接触筛选器,用于以不同方式筛选结果,例如按层遮罩、Z 深度。注意,法线角度不用于重叠测试。 results 用于接收结果的数组。该数组...
言語:日本語 Collider2D.OverlapCollider public intOverlapCollider(ContactFilter2DcontactFilter, Collider2D[]results); パラメーター contactFilterThe contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used for overlap testing. ...
Rigidbody2D.OverlapCollider public int OverlapCollider (ContactFilter2D contactFilter, out Collider2D[] results); 파라미터 contactFilter The contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used for overlap testing. resul...
public int OverlapCollider(ContactFilter2D contactFilter, Collider2D[] results); Parameters contactFilter The contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used for overlap testing. results The array to receive results. The ...
public static int OverlapCollider (Collider2D collider, Collider2D[] results, int layerMask= Physics2D.DefaultRaycastLayers); public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); 参数 collider 定义用于查询其他碰撞体重叠的区域的碰撞体。 results ...
Collider2D.OverlapCollider public int OverlapCollider (ContactFilter2D contactFilter, Collider2D[] results); Parámetros contactFilter The contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used for overlap testing. results The array...
public static int OverlapCollider (Vector2 position, float angle, Collider2D collider, List<Collider2D> results); パラメーター position The position at which to overlap the Collider. angle The angle of at which to overlap the Collider. collider The Collider that defines the area used to query...
PhysicsScene2D.OverlapCollider public static int OverlapCollider (Collider2D collider, Collider2D[] results, int layerMask= Physics2D.DefaultRaycastLayers); public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); パラメーター collider The collider ...