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

SFEX.trace.hull

S๐Ÿท๏ธ Trace

Part of StarfallEx namespace

๐Ÿ”— External
trace.hull(start, endpos, minbox, maxbox, filter, mask, colgroup, ignworld, whitelist)
View on GitHub|lua/starfall/libs_sh/trace.lua:94
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Does a swept-AABB trace

Parameters

NameTypeDescription
startVectorStart position
endposVectorEnd position
minboxVectorLower box corner
maxboxVectorUpper box corner
filterEntity|table|function|nilEntity/array of entities to filter, or a function callback with an entity argument that returns whether the trace should hit
mask?numberTrace mask
colgroup?numberThe collision group of the trace
ignworld?booleanWhether the trace should ignore world
whitelist?booleanMake 'filter' param array act as a hit whitelist instead of blacklist

Returns

TypeDescription
tableResult of the trace https://wiki.facepunch.com/gmod/Structures/TraceResult

Examples

No examples available.

Used In

No usages found in the codebase.