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

SFEX.trace.intersectRayWithOBB

S๐Ÿท๏ธ Trace

Part of StarfallEx namespace

๐Ÿ”— External
trace.intersectRayWithOBB(rayStart, rayDelta, boxOrigin, boxAngles, boxMins, boxMaxs)
View on GitHub|lua/starfall/libs_sh/trace.lua:125
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Does a ray box intersection returning the position hit, normal, and trace fraction, or nil if not hit.

Parameters

NameTypeDescription
rayStartVectorThe origin of the ray
rayDeltaVectorThe direction and length of the ray
boxOriginVectorThe origin of the box
boxAnglesAngleThe box's angles
boxMinsVectorThe box min bounding vector
boxMaxsVectorThe box max bounding vector

Returns

TypeDescription
VectorHit position or nil if not hit
VectorHit normal or nil if not hit
numberHit fraction or nil if not hit

Examples

No examples available.

Used In

No usages found in the codebase.