Skip to main content

PhysicCapsule(Vector3 point1, Vector3 point2, number radius, Vector3 direction)

Constructs new PhysicCapsule.

Parameters:

NameTypeDescription
point1Vector3The center of the sphere at the start of the capsule.
point2Vector3The center of the sphere at the end of the capsule.
radiusnumberThe radius of the capsule.
directionVector3The direction into which to sweep the capsule.

Usage

---@type Vector3
local point1;

---@type Vector3
local point2;

---@type number
local radius;

---@type Vector3
local direction;


local physiccapsule = PhysicCapsule(point1, point2, radius, direction);