Garry's Mod Wiki

PhysObj:GetSurfaceArea

  number PhysObj:GetSurfaceArea()

Description

Returns the surface area of the physics object in source-unitsĀ². Or nil if the PhysObj is a generated sphere or box.

Returns

1 number
The surface area or nil if the PhysObj is a generated sphere or box.