“LlSetPhysicsMaterial”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llSetPhysicsMaterial( integer mask, float gravity_multipli…”) |
(没有差异)
|
2020年8月13日 (四) 13:30的最新版本
首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
函数名 |
---|
Function: llSetPhysicsMaterial( integer mask, float gravity_multiplier, float restitution, float friction, float density ); |
参数:
•整数掩码–密度、摩擦、恢复和重力倍数的位组合,并指定实际应用的浮动 •浮动重力_乘数–范围[-1.0,+28.0],默认值:1.0 •浮动恢复–范围[0.0,1.0],默认值:[0.3,0.9][1] •浮动摩擦力–范围[0.0,255.0],默认值:[0.2,0.9][1] •浮子密度–范围[1.0,22587.0]kg/m^3,默认值:1000.0 摩擦力和恢复的默认值取决于材质类型。 |
返回值:用于设置对象的物理特性。 |
注意事项 |
---|
示例 |
---|
基本示例
llSetPhysicsMaterial(FRICTION, 1.0,0.9,0.1,0.5); // Sets FRICTION to 0.1 多个设置 llSetPhysicsMaterial(GRAVITY_MULTIPLIER | RESTITUTION | FRICTION | DENSITY, 0.5,0.9,0.1,1.0); |
相关函数 |
---|
llGetPhysicsMaterial |
相关事件 |
---|
附录:(表格)
header 1 | header 2 | header 3 |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |
另外 如果遇到有specification的情况等可以加到注意事项里面。 在注意事项里面:回车=另起一行 回车+开头空两格=方框(类似于示例里面的)