CheckBox(Vector3, Vector3, Quaternion, int, QueryTriggerInteraction)
Check whether the given box overlaps with other colliders or not.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public static bool CheckBox(Vector3 center, Vector3 halfExtents, Quaternion orientation, int layermask, QueryTriggerInteraction queryTriggerInteraction)
Parameters
Center of the box.
Half the size of the box in each dimension.
Rotation of the box.
Specifies whether this query should hit Triggers.
Returns
Type | Description |
|---|---|
| bool | True, if the box overlaps with any colliders. |