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