Garry's Mod Wiki

PhysObj:GetVolume

  number or nil PhysObj:GetVolume()

Description

Returns the volume in source unitsĀ³. Or nil if the PhysObj is a generated sphere or box.

Returns

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