Garry's Mod Wiki

PhysObj:GetVolume

  number PhysObj:GetVolume()

Description

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

Returns

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