LlGetVel
De DigiWiki.
Version du 11 août 2012 à 15:29 par Djphil (discuter | contributions)
//A very simple (and not very effective) way of keeping a physical object in place. //If you ever want to actually stop an object, use llMoveToTarget(llGetPos(), .1) default { state_entry() { vector spd; { @loop; if (llVecMag(spd = llGetVel()) > .001) { //We're accelerating... llApplyImpulse(-spd, 0) //Slow us down. } jump loop; } } }//Written by Xaviar Czervik