Skip to main content

PhysicBox(Vector3 center, Vector3 halfExtents, Vector3 direction)

Constructs new PhysicBox.

Parameters:

NameTypeDescription
centerVector3Center of the box.
halfExtentsVector3Half the size of the box in each dimension.
directionVector3The direction in which to cast the box.

Usage

---@type Vector3
local center;

---@type Vector3
local halfExtents;

---@type Vector3
local direction;


local physicbox = PhysicBox(center, halfExtents, direction);