CGameTrace
DidHit
Returns true if the trace hit anything.
DidHitNonWorldEntity
Returns true if the trace hit non-world entity.
DidHitWorld
Returns true if trace hit world.
EntirelyColliding
Returns true if the trace was entirely inside a solid object.
GetContents
Returns the contents flags of the hit entity or surface.
GetEndPos
Returns the impact position of the trace.
GetEntity
Returns a handle to the entity this trace hit.
GetEntityIndex
Returns the index of the entity hit, or -1 if it did not hit an entity.
GetExitFraction
If StartsColliding() is true, this is the fraction at which the trace exited the starting solid object.
GetFraction
Time completed, 1.0 means no hit.
GetImpactNormal
Returns the normal of the plane where the trace hit.
GetPaintType
If the impact succeeded, calculate the paint type at the impact point.
GetStartPos
Returns the start position of the trace. If StartsColliding() is true, this is the position where the trace exited the starting solid object.
GetSurfaceFlags
Returns the surface flags of the hit surface.
GetSurfaceName
Returns the material of the hit surface for brushes. **studio** is always returned for props, and **empty** if no impact occurred.
GetSurfaceProp
Returns the $surfaceprop name of the hit surface.
IsPortalable
Calculate whether this surface is portalable, taking the material and Conversion Gel into account.
StartsColliding
Returns true if the initial position was inside a solid object.