Library trace

Provides functions for doing line/AABB traces

Functions

trace (start, endpos, filter, mask) Does a line trace
traceHull (start, endpos, minbox, maxbox, filter, mask) Does a swept-AABB trace


Functions

trace_library.trace (start, endpos, filter, mask)
Does a line trace

Parameters:

  • start: Start position
  • endpos: End position
  • filter: Entity/array of entities to filter
  • mask: Trace mask

Return value:

    Result of the trace
trace_library.traceHull (start, endpos, minbox, maxbox, filter, mask)
Does a swept-AABB trace

Parameters:

  • start: Start position
  • endpos: End position
  • minbox: Lower box corner
  • maxbox: Upper box corner
  • filter: Entity/array of entities to filter
  • mask: Trace mask

Return value:

    Result of the trace

Valid XHTML 1.0!