Don't click here unless you want to be banned.

LSL Wiki : llSetBuoyancy

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-174-129-92-127.compute-1.amazonaws.com
llSetBuoyancy(float buoyancy)

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

(As of 2008-07-16, scripted buoyancy (this function) and normal hovering buoyancy are not working properly on avatars in SL's implementation of Havok4. Specially, if you use this function, consider your avatar to be sinking, at different speeds depending on what key you press and on wether you are in standing state after having landed or not. llApplyImpulse and llSetForce are ineffective against that. If you want this to change, vote for bug / SVC-1792 and its related bug / SVC-2013.)

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:


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

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