Function
Moderate
Bleeding edge only
Prop:SetBuoyancySettings
Any value passed as nil restores that setting's default.<br/><br/>While the Pontoons are being automatically calculated, changing buoyancy_coefficient also recalculates them, as their radius derives from it.
Syntax
my_prop:SetBuoyancySettings(enabled = true, buoyancy_coefficient = 0.1, buoyancy_damp = 1000, max_buoyant_force = 5000000)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
enabled
optional
|
boolean | true |
Whether Buoyancy forces are applied at all |
buoyancy_coefficient
optional
|
float | 0.1 |
How much it floats, the higher the more |
buoyancy_damp
optional
|
float | 1000 |
First order damping on the vertical velocity, reduces bobbing |
max_buoyant_force
optional
|
float | 5000000 |
Clamp on the upwards force, stops light objects being launched out of the water |