Sets the buoyancy of the task or object. Requires physics to be enabled.
void llSetBuoyancy( float buoyancy );
Forced delay: 0.0 seconds. Energy: 10.0.
A buoyancy value of 0.0 disables the effect
when buoyancy is < 1.0, the object sinks
when buoyancy equals 1.0 it floats
when buoyancy is > 1.0 the object rises
llSetBuoyancy in any child prim appears to set the global buoyancy level for the object.llSetPhysicsMaterial(GRAVITY_MULTIPLIER, gravity, 0.0, 0.0, 0.0) which doesn't consume energy.llSetBuoyancy(1.5) by llSetPhysicsMaterial(GRAVITY_MULTIPLIER, -0.5 ,0.0, 0.0, 0.0) to raise an object; replace llSetBuoyancy(1.0) by llSetPhysicsMaterial(GRAVITY_MULTIPLIER, 0.0 ,0.0, 0.0, 0.0) to float an objectllSetPhysicsMaterial(GRAVITY_MULTIPLIER, -0.5 ,0.0, 0.0, 0.0) followed by llSetPhysicsMaterial(GRAVITY_MULTIPLIER, 1.0 ,0.0, 0.0, 0.0), the change in movement is immediate, and the object starts to fall at the instant that the second call is done.Makes an object float up slowly (e.g. a red balloon)
default
{
state_entry()
{
llSetStatus(STATUS_PHYSICS, TRUE);
llSetBuoyancy(1.05);
}
}
Often used to make an object appear to be unaffected by gravity.