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

LSL Wiki : llSetBuoyancy

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling22.us.archive.org
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
Comments [Hide comments/form]
1.18.0.6 setting the buoyancy w the vehicle function, then calling this, adds the quantity to the value, llSetVehicleFloatParam( VEHICLE_BUOYANCY, 0.98 ); then call llSetBuoyancy(0.78);, seems to have a new value of 1.7,(takes off up w/o forces applied) in stead of 0.78 -fix llSetVehicleFloatParam( VEHICLE_BUOYANCY, 0.98 ); then call llSetBuoyancy(-0.2); ==0.78 i was lookin for.(this is an estimate since i can't get the boyancy out of the object)
-- r74-192-179-69.htvlcmta01.hnvitx.tl.dh.suddenlink. (2007-07-27 19:15:54)
Attach a comment to this page: