Garry's Mod Wiki

PhysObj:GetMaterial

  string PhysObj:GetMaterial()

Description

Returns the physical material of the physics object.

See util.GetSurfaceData for a function that adds these types as well as further explanation of what they are.

Returns

1 string
The physical material name.