LlGroundRepel

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/


函数名
Function: llGroundRepel( float height, integer water, float tau );
参数:

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

返回值:如高度在地面或水平面 * 0.5(以往更高)以内,则会严重阻隔高度
注意事项
只对物理物体有效
示例
示例一
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!!
相关函数
llSetHoverHeight--和 lgroundrepel 一样,只是没有高度条件

llStopHover--停止徘徊

相关事件