Garry's Mod Wiki

Log in to edit

PhysObj:GetMaterial

<function name="GetMaterial" parent="PhysObj" type="classfunc"> <description>Returns the [physical material](https://developer.valvesoftware.com/wiki/Material_surface_properties) of the physics object. See <page>util.GetSurfaceData</page> for a function that adds these types as well as further explanation of what they are.</description> <realm>Shared</realm> <rets> <ret name="" type="string">The physical material name.</ret> </rets> </function>