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