Garry's Mod Wiki

Revision Difference

PhysObj:GetMaterial#563735

<function name="GetMaterial" parent="PhysObj" type="classfunc"> <description>Returns the physical material of the physics object.</description>⤶ <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</ret>⤶ <ret name="" type="string">The physical material name.</ret>⤶ </rets> </function>