Critically damps to height if within height * 0.5 of ground or water level (which ever is higher).
void llGroundRepel( float height, integer water, float tau );
Forced delay: 0.0 seconds. Energy: 10.0.
Do not use with vehicles.
Does not pull the object down if it is stuck higher than that, unlike the similar llSetHoverHeight.
To stop llGroundRepel, this seems to work: llGroundRepel(0.0, FALSE, 0.0)
default
{
state_entry()
{
llSetStatus(STATUS_PHYSICS, TRUE);
llGroundRepel(0.5, TRUE, 0.2); // In a 1/2 meter cube this is roughly the minimum height for any noticeable effect.
// to
llGroundRepel(4096.0, TRUE, 0.2); // There is no restrictive maximum.
// However as the prim reaches 4096 meters (bear in mind the prim height will be (float height + ground height))
// it will be too high to be allowed to exist.
}
}// This is actually a remarkably fast way to go straight up!!