Difference between revisions of "LlGroundRepel"

From Second Life Wiki
Jump to navigation Jump to search
(That was quite good fun to test.)
m (clarified minimum height)
Line 16: Line 16:
     {
     {
         llSetStatus(STATUS_PHYSICS, TRUE);
         llSetStatus(STATUS_PHYSICS, TRUE);
         llGroundRepel(0.5, TRUE, 0.2); // This is roughly the minimum height for any noticeable effect.
         llGroundRepel(0.5, TRUE, 0.2); // In a 1/2 meter cube this is roughly the minimum height for any noticeable effect.
         // to
         // to
         llGroundRepel(4096.0, TRUE, 0.2); // There is no restrictive maximum.
         llGroundRepel(4096.0, TRUE, 0.2); // There is no restrictive maximum.

Revision as of 20:19, 9 August 2009

Summary

Function: llGroundRepel( float height, integer water, float tau );

Critically damps to height if within height*0.5 of ground or water level (which ever is higher)

• float height Distance above the ground
• integer water boolean, if TRUE then hover above water too.
• float tau seconds to critically damp in

Do not use with vehicles.

Caveats

Examples

<lsl>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!!</lsl>

See Also

Functions

•  llSetHoverHeight Same as llGroundRepel but without the height condition
•  llStopHover To stop hovering

Deep Notes

Search JIRA for related Issues

Signature

function void llGroundRepel( float height, integer water, float tau );