unity Physics.BoxCast Description

public static bool BoxCast (Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation= Quaternion.identity, float maxDistance= Mathf.Infinity, int layerMask= DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction= QueryTriggerInteraction.UseGlobal);

center of the center of the cartridge body.
half the size of each dimension halfExtents cartridge.
direction of the projection direction of the cartridge body.
rotational orientation of the cartridge body.
maxDistance maximum projected length (= 0 indicates that only the cassette body projection calculation,> 0 indicates the distance from the edge of the cartridge body projected to drection).
layerMask mask layer, when projecting the capsule body for selectively omit the collision body.
queryTriggerInteraction specify whether the query should hit the trigger.

Guess you like

Origin www.cnblogs.com/kingBook/p/12467643.html