Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.trace.isBoxIntersectingSphere

S๐Ÿท๏ธ Trace

Part of StarfallEx namespace

๐Ÿ”— External
trace.isBoxIntersectingSphere(boxMins, boxMaxs, spherePos, sphereRadius)
View on GitHub|lua/starfall/libs_sh/trace.lua:143
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Performs a box-sphere intersection and returns whether there was an intersection or not.

Parameters

NameTypeDescription
boxMinsVectorThe minimum extents of the World Axis-Aligned box.
boxMaxsVectorThe maximum extents of the World Axis-Aligned box.
spherePosVectorPosition of the sphere.
sphereRadiusnumberThe radius of the sphere.

Returns

TypeDescription
booleantrue if there is an intersection, false otherwise.

Examples

No examples available.

Used In

No usages found in the codebase.