Garry's Mod Wiki

PhysObj:SetMass

  PhysObj:SetMass( number mass )

Description

Sets the mass of the physics object.

This resets PhysObj:SetBuoyancyRatio (Recalculated based materials' and the physics objects' densities, latter of which is dependent on mass).

If you used a custom ratio, you will have to re-set it again after SetMass.

Arguments

1 number mass
The mass in kilograms, in range [0, 50000]