Garry's Mod Wiki

util.TraceEntityHull

  table util.TraceEntityHull( table tracedata, Entity ent )

Description

Identical to util.TraceHull but uses an entity's Axis-Aligned Bounding Box (AABB) for mins/maxs inputs. (These 2 keys will be ignored in the provided table)

Arguments

1 table tracedata
Trace data. See Trace structure
2 Entity ent
The entity to use mins/maxs of for the hull trace.

Returns

1 table
Trace result. See TraceResult structure