LlGetForce

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

Template:Needs Translation/


函数名
Function: vector llGetForce( )
参数:
返回值:返回一个矢量,作为力(如果脚本是物理的)
注意事项
注意事项
示例
default
{
    state_entry()
    {
        llSetForce(<0,llFrand(10),0>,FALSE); //Sets the force in a frand of 10 in Y axis.
        llSetTimerEvent(1); //Resets the force every second.
    }
    touch_start(integer total_num)
    {
        llOwnerSay((string)llGetForce()); //Says the force.
    }
    timer()
    {
        llResetScript();
    }
}
相关函数
llGetOmega

llGetVel llGetTorque llGetMass llGetAccel llSetForce llSetTorque llSetForceAndTorque

相关事件