Garry's Mod Wiki

PhysObj:IsPenetrating

  boolean PhysObj:IsPenetrating()

Description

Returns whenever the physics object is penetrating another physics object.

This is internally implemented as PhysObj:HasGameFlag( FVPHYSICS_PENETRATING ) and thus is only updated for non-static physics objects.

Returns

1 boolean
Whether the physics object is penetrating another object.