Template:Needs Translation/
函数名
|
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!!
|