Get Root Position
De DigiWiki.
Version du 11 mars 2012 à 04:35 par Djphil (discuter | contributions)
vector GetRootPos() { // If this object is not linked, or if it is the // root object, just return llGetPos() integer LinkNum = llGetLinkNumber(); if (LinkNum <= 1) return llGetPos(); // Otherwise take local position into account. return llGetPos() - llGetLocalPos(); }