TR_EnumerateEntitiesHull

Last Updated2018-10-07
Created At2018-08-13

Enumerates over entities along a ray hull. 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.

native void TR_EnumerateEntitiesHull(const float pos[3], const float vec[3], const float mins[3], const float maxs[3], int mask, TraceEntityEnumerator enumerator, any data = 0)

Parameters

const float[3] pos
Starting position of the ray.
const float[3] vec
Ending position of the ray.
const float[3] mins
Hull minimum size.
const float[3] maxs
Hull maximum size.
int mask
Mask to use for the trace. See PARTITION_* flags.
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.

Return Value

void