Enums 1

Enum Description
RayType

Types 2

Functions 35

Function Description
TR_AllSolid

Returns whether the entire trace was in a solid area.

TR_ClipCurrentRayToEntity

Clips the current global ray (or hull) to a particular entity.

TR_ClipCurrentRayToEntityEx

Clips the current global ray (or hull) to a particular entity.

TR_ClipRayHullToEntity

Clips a ray hull to a particular entity.

TR_ClipRayHullToEntityEx

Clips a ray hull to a particular entity.

TR_ClipRayToEntity

Clips a ray to a particular entity.

TR_ClipRayToEntityEx

Clips a ray to a particular entity.

TR_DidHit

Returns if there was any kind of collision along the trace ray.

TR_EnumerateEntities

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.

TR_EnumerateEntitiesHull

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.

TR_GetDisplacementFlags

Returns the displacement flags for the surface that was hit. See DISPSURF_FLAG_*.

TR_GetEndPosition

Returns the collision position of a trace result.

TR_GetEntityIndex

Returns the entity index that collided with the trace.

TR_GetFraction

Returns the time fraction from a trace result (1.0 means no collision).

TR_GetFractionLeftSolid

Returns the time fraction from a trace result when it left a solid. Only valid if trace started in solid

TR_GetHitBoxIndex

Returns in which hitbox the trace collided if any.

TR_GetHitGroup

Returns in which body hit group the trace collided if any.

TR_GetPhysicsBone

Returns the index of the physics bone that was hit.

TR_GetPlaneNormal

Find the normal vector to the collision plane of a trace.

TR_GetPointContents

Get the contents mask and the entity index at the given position.

TR_GetPointContentsEnt

Get the point contents testing only the given entity index.

TR_GetStartPosition

Returns the starting position of a trace.

TR_GetSurfaceFlags

Returns the surface flags. See SURF_*.

TR_GetSurfaceName

Returns the name of the surface that was hit.

TR_GetSurfaceProps

Returns the surface properties index of the surface that was hit.

TR_PointOutsideWorld

Tests a point to see if it's outside any playable area

TR_StartSolid

Returns whether the initial point was in a solid area.

TR_TraceHull

Starts up a new trace hull using a global trace result.

TR_TraceHullEx

Starts up a new trace hull using a new trace result.

TR_TraceHullFilter

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

TR_TraceHullFilterEx

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

TR_TraceRay

Starts up a new trace ray using a global trace result.

TR_TraceRayEx

Starts up a new trace ray using a new trace result.

TR_TraceRayFilter

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

TR_TraceRayFilterEx

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