llRot2Up
vector llRot2Up(rotation q)
あるオブジェクトの回転がqである時、オブジェクトの上方向(ローカルZ軸)の向きを得る。
戻り値のvectorは長さが1の単位ベクトルである。
戻り値のvectorは長さが1の単位ベクトルである。
例えば、アタッチメントにおいて、アバターの上方向がどちらなのかを判断するのに使える。
default { touch_start(integer detected){ vector axis = llRot2Up(llGetRot()); llOwnerSay("Avatar's Z-axis direction is " + (string)axis); } }