LSL Wiki Mirror 10-5-2006: llSetBuoyancy

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llSetBuoyancy(float buoyancy)

Sets a physical object's buoyancy (which seems to be an additional force, not unlike real-life buoyancy).

The default buoyancy for an object is 0. Setting this to exactly 1 will cause the object to float as if no gravity exists. Values greater than 1 will cause the object to float up, while values between 0 and 1 mean a gentler than regular fall, the closer to 0 the closer to normal behavior. Setting a negative value will simulate a downward force, which will also cause the affected prim/object to vibrate a lot more on the ground while the physics engine tries to "settle" it.

Behavior not unlike llSetForce, as well as the constant use of energy by this function, would suggest that buoyancy internally works by applying extra (mass-proportional) force, either up or down, while gravity still works (hence the energy use while floating).

Notes:


Functions | Dynamics
There is no comment on this page. [Display comments/form]