TR_TraceRayFilter Function

Starts up a new trace ray using a global trace result and a customized trace ray filter.

Calling TR_Trace*Filter or TR_Trace*FilterEx from inside a filter function is currently not allowed and may not work.

void TR_TraceRayFilter(const float pos[3], const float vec[3], int flags, RayType rtype, TraceEntityFilter filter, any data, TraceType traceType)

Parameters

const float[3] pos

Starting position of the ray.

const float[3] vec

Depending on RayType, it will be used as the ending point, or the direction angle.

int flags

Trace flags.

RayType rtype

Method to calculate the ray direction.

TraceEntityFilter filter

Function to use as a filter.

any data

Arbitrary data value to pass through to the filter function.

TraceType traceType

Trace type.