Garry's Mod Wiki


A PhysCollide holds collision data from VPhysics. These objects can be used to run (currently quite limited) collision tests, but do not represent actual physics objects.

Created by CreatePhysCollideBox or CreatePhysCollidesFromModel.


Destroys the PhysCollide object.
boolean PhysCollide:IsValid()
Checks whether this PhysCollide object is valid or not. You should just use IsValid instead.
Vector, Vector, number PhysCollide:TraceBox( Vector origin, Angle angles, Vector rayStart, Vector rayEnd, Vector rayMins, Vector rayMaxs )
Performs a trace against this PhysCollide with the given parameters. This can be used for both line traces and box traces.