Funzione
Moderato
Solo bleeding edge
Vehicle: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.
Non ancora tradotto
Sintassi
my_vehicle:SetBuoyancySettings(enabled = true, buoyancy_coefficient = 0.1, buoyancy_damp = 1000, max_buoyant_force = 5000000)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
enabled
facoltativo
|
boolean | true |
Whether Buoyancy forces are applied at all |
buoyancy_coefficient
facoltativo
|
float | 0.1 |
How much it floats, the higher the more |
buoyancy_damp
facoltativo
|
float | 1000 |
First order damping on the vertical velocity, reduces bobbing |
max_buoyant_force
facoltativo
|
float | 5000000 |
Clamp on the upwards force, stops light objects being launched out of the water |