Difference between revisions of "LlSetBuoyancy"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
DuraS Torok (talk | contribs) |
|||
Line 5: | Line 5: | ||
|func=llSetBuoyancy | |func=llSetBuoyancy | ||
|p1_type=float|p1_name=buoyancy|p1_desc | |p1_type=float|p1_name=buoyancy|p1_desc | ||
|func_desc= | |func_desc=Sets the buoyancy of the task or object. | ||
|func_footnote=if ('''buoyancy''' == 0.0) disables<br/>if ('''buoyancy''' < 1.0) sinks <br/>if ('''buoyancy''' == 1.0) floats <br/>If ('''buoyancy''' > 1.0) rises | |func_footnote=if ('''buoyancy''' == 0.0) disables<br/>if ('''buoyancy''' < 1.0) sinks <br/>if ('''buoyancy''' == 1.0) floats <br/>If ('''buoyancy''' > 1.0) rises | ||
|spec | |spec |
Revision as of 08:18, 20 May 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetBuoyancy( float buoyancy );122 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Sets the buoyancy of the task or object.
• float | buoyancy |
if (buoyancy == 0.0) disables
if (buoyancy < 1.0) sinks
if (buoyancy == 1.0) floats
If (buoyancy > 1.0) rises
Caveats
- Wind can cause the prim to drift.
- Unlike some other characteristics, this is cancelled if the script that set buoyancy is removed from the prim.
Examples
Makes an object float up slowly (e.g. a red balloon)
default { state_entry() { llSetStatus(STATUS_PHYSICS, TRUE); llSetBuoyancy(1.05); } }