Skip to main content

PhysicSphere(Vector3 origin, number radius, Vector3 direction)

Constructs new PhysicSphere.

Parameters:

NameTypeDescription
originVector3The center of the sphere
radiusnumberThe radius of the sphere.
directionVector3The direction into which to sweep the sphere.

Usage

---@type Vector3
local origin;

---@type number
local radius;

---@type Vector3
local direction;


local physicsphere = PhysicSphere(origin, radius, direction);