TR_ClipRayHullToEntityEx Function

Clips a ray hull to a particular entity.

Handle TR_ClipRayHullToEntityEx(const float pos[3], const float vec[3], const float mins[3], const float maxs[3], int flags, int entity)

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 flags

Trace flags.

int entity

Entity to clip to.

Return Value

Ray trace handle, which must be closed via CloseHandle().

Errors

Invalid entity.