Garry's Mod Wiki

Revision Difference

PhysObj:GetBuoyancyRatio#567751

<function name="GetBuoyancyRatio" parent="PhysObj" type="classfunc"> <description>Returns the buoyancy ratio of the physics object. (How well it floats in water). ⤶ <note>This feature is not available on x86-64 beta and on MacOS version of the game.</note>⤶ </description> <realm>Shared</realm> <added>2025.08.08</added> <rets> <ret name="buoyancy" type="number">Buoyancy ratio, where 0 is not buoyant at all (like a rock), and 1 is very buoyant (like wood)</ret> </rets> </function>