PhysCollide/TraceBox

From Garry's Mod
Jump to: navigation, search
 PhysCollide:TraceBox( )

Contents

Description

Performs a trace against this PhysCollide with the given parameters. This can be used for both line traces and box traces.

Arguments

Vector origin

The origin for the PhysCollide during the trace

Arguments

Angle angles

The angles for the PhysCollide during the trace

Arguments

Vector rayStart

The start position of the trace

Arguments

Vector rayEnd

The end position of the trace

Arguments

Vector rayMins

The mins of the trace's bounds

Arguments

Vector rayMaxs

The maxs of the trace's bounds

Returns

Vector

Hit position of the trace. This is false if the trace did not hit.

Returns

Vector

Hit normal of the trace

Returns

number

Fraction of the trace. This is calculated from the distance between startPos, hitPos, and endPos.
Personal tools
Navigation