Draw.BoxCast

Static Method in Draw

Declaration

public static void BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float distance, Color color)

Description

Draws a wireframe box using the same parameters as Physics.BoxCast.

Parameters

centerThe center of the box.
halfExtentsHalf the size of the box in each dimension.
directionThe direction in which to cast the box.
orientationThe rotation of the box.
distanceThe length of the cast.
colorThe color of the box.