Enumerates over entities along a ray. This may find entities that are close to the ray but do not actually intersect it. Use TR_Clip*RayToEntity with TR_DidHit to check if the ray actually intersects the entity.
void TR_EnumerateEntities(const float pos, const float vec, int mask, RayType rtype, TraceEntityEnumerator enumerator, any data)
Starting position of the ray.
Depending on RayType, it will be used as the ending point, or the direction angle.
Mask to use for the trace. See PARTITION_* flags.
Method to calculate the ray direction.
Function to use as enumerator. For each entity found along the ray, this function is called.
Arbitrary data value to pass through to the enumerator.