Difference between revisions of "LlSetBuoyancy"
Jump to navigation
Jump to search
m (Changed spelling to 'affect' from 'effect', since to affect an object is to have an effect on it, whereas to effect an object would be more like to rez it.) |
|||
Line 25: | Line 25: | ||
|also_events | |also_events | ||
|also_articles | |also_articles | ||
|notes=Often used to make an object look like gravity does not | |notes=Often used to make an object look like gravity does not affect it. | ||
|cat1=Hover | |cat1=Hover | ||
|cat2=Physics | |cat2=Physics |
Revision as of 04:34, 3 June 2009
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. 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
Caveats
Examples
Makes an object float up slowly (e.g. a red balloon)<lsl>default {
state_entry() { llSetStatus(STATUS_PHYSICS, TRUE); llSetBuoyancy(1.05); }}</lsl>
Notes
Often used to make an object look like gravity does not affect it.