LlTargetOmega
De DigiWiki.
Version du 13 octobre 2012 à 19:11 par Djphil (discuter | contributions)
// rotates the x axis once per second, // rotates the y axis 3 times per second, // rotates the z axis once every two seconds. // combined the rate is about 3.20156 revolutions per second llTargetOmega(<1.0,3.0,0.5>,TWO_PI,1.0);
//Rotates very slowly around a sphere's local X axis .... Good for making a globe that rotates around a tilted axis default { state_entry() { llTargetOmega(<1.0,0.0,0.0>*llGetRot(),0.1,0.01); } }
//Rotates very slowly around a cylinder's local or global Z axis // .... Good for making a propeller that rotates regardless of initial orientation. default { state_entry() { llTargetOmega(llRot2Up(llGetLocalRot()), PI, 1.0); } }