OverlapBoxNonAlloc(Vector3, Vector3, Collider[], Quaternion, int, QueryTriggerInteraction)
Find all colliders touching or inside of the given box, and store them into the buffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public static int OverlapBoxNonAlloc(Vector3 center, Vector3 halfExtents, Collider[] results, Quaternion orientation, int mask, QueryTriggerInteraction queryTriggerInteraction)
Parameters
Center of the box.
Half of the size of the box in each dimension.
The buffer to store the results in.
Rotation of the box.
Specifies whether this query should hit Triggers.
Returns
Type | Description |
|---|---|
| int | The amount of colliders stored in |