LlGetForce
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| 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 |
| 相关事件 |
|---|