LlGetVel

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

Template:Needs Translation/


函数名
Function: vector llGetVel( );
参数:无
返回值:返回一个物体的速度矢量。
注意事项
All Issues ~ Search JIRA for related Bugs
示例
示例一
//A very simple (and not very effective) way of keeping a physical object in place.
//If you ever want to actually stop an object, use llMoveToTarget(llGetPos(), .1)
 
default
{
    state_entry()
    {
        vector spd;
        {
            @loop;
            if (llVecMag(spd = llGetVel()) > .001)
            { //We're accelerating...
                llApplyImpulse(-spd, 0); //Slow us down.
            }
        jump loop;
        }
    }
}//Written by Xaviar Czervik
相关函数
llGetAccel

llGetOmega llGetForce--得到物体的力 llGetTorque llGetMass

相关事件