“LlGroundRepel”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llGroundRepel( float height, integer water, float tau ); |…”) |
|||
| 第27行: | 第27行: | ||
} | } | ||
}// This is actually a remarkably fast way to go straight up!! | }// This is actually a remarkably fast way to go straight up!! | ||
| − | <pre> | + | </pre> |
2020年8月20日 (四) 10:20的最新版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llGroundRepel( float height, integer water, float tau ); |
| 参数:
float height – Distance above the ground integer water – boolean, if TRUE then hover above water too. float tau – seconds to critically damp in |
| 返回值:如高度在地面或水平面 * 0.5(以往更高)以内,则会严重阻隔高度 |
| 注意事项 |
|---|
| 只对物理物体有效 |
| 示例 |
|---|
示例一
default
{
state_entry()
{
llSetStatus(STATUS_PHYSICS, TRUE);
llGroundRepel(0.5, TRUE, 0.2); // In a 1/2 meter cube this is roughly the minimum height for any noticeable effect.
// to
llGroundRepel(4096.0, TRUE, 0.2); // There is no restrictive maximum.
// However as the prim reaches 4096 meters (bear in mind the prim height will be (float height + ground height))
// it will be too high to be allowed to exist.
}
}// This is actually a remarkably fast way to go straight up!!
|
| 相关函数 |
|---|
| llSetHoverHeight--和 lgroundrepel 一样,只是没有高度条件
llStopHover--停止徘徊 |
| 相关事件 |
|---|
| 无 |