LlSetBuoyancy
From Second Life Wiki
(Redirected from LSL llSetBuoyancy)
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Contents |
Description
Function: llSetBuoyancy( float buoyancy );| 122 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Sets the buoyancy of the task or object. Requires physics to be enabled.
| • float | buoyancy |
if (buoyancy == 0.0) disables
if (buoyancy < 1.0) sinks
if (buoyancy == 1.0) floats
if (buoyancy > 1.0) rises
Examples
Makes an object float up slowly (e.g. a red balloon)
default { state_entry() { llSetStatus(STATUS_PHYSICS, TRUE); llSetBuoyancy(1.05); } }

