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). This is a physics engine limitation.

Arguments

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