LlGetMassMKS
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| float llGetMassMKS(); |
| 返回一个浮点值,即脚本附加到的对象的质量(以千克为单位)。功能上与llGetMass相同,但返回值中使用的单位除外。 |
| 无 |
| 注意事项 |
|---|
附件不影响头像的质量,只影响某些外观设置。 |
| 示例 |
|---|
| //一种产生恒定力的方法,无论物体是什么,都能以视觉上的速度返回相同的速度
default { touch_start()
{
llApplyImpulse(<0.0, 0.0, 5.0> * llGetMassMKS(), FALSE);
// This fires the object up at the same m/s whatever the size (or difference!)
}
} |
| 相关函数 |
|---|
| llGetObjectMass - 获取对象质量。
llGetForce - 获取对象的力 |
| 相关事件 |
|---|
| 千克值似乎是 Lindogram value 乘以100。 |