OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llSetHoverHeight C# (CSharp) Method

llSetHoverHeight() public method

Attempt to clamp the object on the Z axis at the given height over tau seconds.
public llSetHoverHeight ( double height, int water, double tau ) : void
height double Height to hover. Height of zero disables hover.
water int False if height is calculated just from ground, otherwise uses ground or water depending on whichever is higher
tau double Number of seconds over which to reach target
return void
        public void llSetHoverHeight(double height, int water, double tau)
        {
            m_host.AddScriptLPS(1);

            PIDHoverType hoverType = PIDHoverType.Ground;
            if (water != 0)
            {
                hoverType = PIDHoverType.GroundAndWater;
            }
            m_host.SetHoverHeight((float)height, hoverType, (float)tau);
        }
LSL_Api