Api > PhysicSphere > Constructor
PhysicSphere(Vector3 origin, number radius, Vector3 direction)⚓︎
Constructs new PhysicSphere.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
origin | Vector3 | The center of the sphere |
radius | number | The radius of the sphere. |
direction | Vector3 | The 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);