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
|