Skip to content

Class: Trace

Fields

Trace.startposVector3
Trace start position.
Trace.endposVector3
The actual endpoint (early-exit if the trace hit something).
Trace.planePlane
The plane that was hit, if any.
Trace.fractionfloat
0.0 – 1.0 fraction of the trace that was completed (1.0 = no hit).
Trace.contentsint
Content flags of the hit surface.
Trace.dispFlagsint
Displacement flags.
Trace.allsolidbool
true if the entire trace is in solid space.
Trace.startsolidbool
true if the start position is in solid space.
Trace.fractionleftsolidfloat
Fraction at which the trace left solid, if startsolid.
Trace.surfaceSurface
The surface that was hit.
Trace.hitgroupint
Hitgroup index of the hit (see HITGROUP_*).
Trace.physicsboneint
Index of the physics bone that was hit.
Trace.entity
The entity that was hit, if any.

Trace.hitboxint :