TR_EnumerateEntitiesSphere Function

Enumerates over entities in a sphere.

void TR_EnumerateEntitiesSphere(const float pos[3], float radius, int mask, TraceEntityEnumerator enumerator, any data)


const float[3] pos

Starting position of the ray.

float radius

Radius of the ray.

int mask

Mask to use for the trace. See PARTITION_* flags.

TraceEntityEnumerator enumerator

Function to use as enumerator. For each entity found along the ray, this function is called.

any data

Arbitrary data value to pass through to the enumerator.