LlGetMass
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: float llGetMass(); |
| 返回一个float,它是脚本附加到的对象的质量(在Lindograms中)。 |
| 无 |
| 注意事项 |
|---|
附件不影响头像的质量,只影响某些外观设置。 |
| 示例 |
|---|
| //在视觉上,物体的速度是一样的
default { touch_start()
{
llApplyImpulse(<0.0, 0.0, 5.0> * llGetMass(), FALSE);
// This fires the object up at the same m/s whatever the size (or difference!)
}
} |
| 相关函数 |
|---|
| llGetObjectMass - 获取对象质量。
llGetForce - 获取对象的力 |
| 相关事件 |
|---|