Trace
Description
Table structure used for util.TraceLine.
Members
Entity filter
Things the trace should not hit. Can also be a table of entities or a function with one argument:
- Entity ent - The entity that the trace hit
Return true in the function to hit the entity, false to skip it.
Using a function here is super slow - try to avoid it.
Default: {}
number mask
The trace mask MASK enum. This determines what the trace should hit and what it shouldn't hit. A mask is a combination of CONTENTS enum - you can use these for more advanced masks.
Default: MASK_SOLID
number collisiongroup
The collision group COLLISION_GROUP enum. This determines what the trace should hit in regards to the entity's collision group.
Default: COLLISION_GROUP_NONE