Garry's Mod Wiki

PhysObj:GetBuoyancyRatio

  number PhysObj:GetBuoyancyRatio()

Description

Returns the buoyancy ratio of the physics object. (How well it floats in water).

This feature is not available on x86-64 beta and on MacOS version of the game.

Returns

1 number buoyancy
Buoyancy ratio, where 0 is not buoyant at all (like a rock), and 1 is very buoyant (like wood)