TestOverlapShape(PhysicsShape, QueryFilter)
Tests if the provided shape overlaps any shapes. The selected shape is excluded from any results and must be in this world otherwise a warning will be produced.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool TestOverlapShape(PhysicsShape shape, PhysicsQuery.QueryFilter filter)
Parameters
The shape used to check overlap.
The filter to control the result returned.
Returns
Type | Description |
|---|---|
| bool | If the query overlaps anything. |