UFO: Alien Invasion
Loading...
Searching...
No Matches
trace_t Struct Reference

#include <tracing.h>

Collaboration diagram for trace_t:
Collaboration graph

Public Member Functions

 trace_s ()
void init ()

Data Fields

bool allsolid
bool startsolid
float fraction
vec3_t endpos
TR_PLANE_TYPE plane
cBspSurface_tsurface
int planenum
uint32_t contentFlags
int32_t leafnum
int mapTile
struct le_s * le
int entNum

Detailed Description

a trace is returned when a box is swept through the world

Definition at line 55 of file tracing.h.

Member Function Documentation

◆ init()

void trace_t::init ( )
inline

Definition at line 72 of file tracing.h.

References OBJZERO.

Referenced by trace_s().

◆ trace_s()

trace_t::trace_s ( )
inline

Definition at line 69 of file tracing.h.

References init().

Field Documentation

◆ allsolid

bool trace_t::allsolid

if true, plane is not valid

Definition at line 56 of file tracing.h.

Referenced by CL_ClipMoveToLEs(), SV_ClipMoveToEntities(), TR_BoxTrace(), TR_ClipBoxToBrush(), and TR_TestBoxInBrush().

◆ contentFlags

uint32_t trace_t::contentFlags

contents on other side of surface hit

Definition at line 63 of file tracing.h.

Referenced by G_EventShoot(), SV_PointContents(), TR_ClipBoxToBrush(), and TR_TestBoxInBrush().

◆ endpos

vec3_t trace_t::endpos

final position along line

Definition at line 59 of file tracing.h.

Referenced by CM_EntTestLineDM(), CM_HintedTransformedBoxTrace(), and TR_BoxTrace().

◆ entNum

int trace_t::entNum

not set by CM_*() functions

Definition at line 67 of file tracing.h.

Referenced by AI_CheckLineOfFire(), G_EventShoot(), SV_ClipMoveToEntities(), and SV_Trace().

◆ fraction

◆ le

struct le_s* trace_t::le

not set by CM_*() functions

Definition at line 66 of file tracing.h.

Referenced by CL_ClipMoveToLEs(), and CL_Trace().

◆ leafnum

int32_t trace_t::leafnum

Definition at line 64 of file tracing.h.

Referenced by TR_ClipBoxToBrush().

◆ mapTile

int trace_t::mapTile

the map tile we hit something

Definition at line 65 of file tracing.h.

Referenced by CM_CompleteBoxTrace(), and CM_HintedTransformedBoxTrace().

◆ plane

TR_PLANE_TYPE trace_t::plane

surface plane at impact - normal is in there

Definition at line 60 of file tracing.h.

Referenced by CM_HintedTransformedBoxTrace(), G_EventShoot(), and TR_ClipBoxToBrush().

◆ planenum

int trace_t::planenum

index of the plane hit, used for map debugging

Definition at line 62 of file tracing.h.

Referenced by TR_ClipBoxToBrush().

◆ startsolid

bool trace_t::startsolid

if true, the initial point was in a solid area

Definition at line 57 of file tracing.h.

Referenced by CL_ClipMoveToLEs(), CM_EntTestLine(), CM_EntTestLineDM(), SV_ClipMoveToEntities(), TR_ClipBoxToBrush(), and TR_TestBoxInBrush().

◆ surface

cBspSurface_t* trace_t::surface

surface hit

Definition at line 61 of file tracing.h.

Referenced by G_SendFootstepSound(), LE_PlayFootStepSound(), TEST_F(), and TR_ClipBoxToBrush().


The documentation for this struct was generated from the following file: