Parsonsda Posted September 15, 2014 Share Posted September 15, 2014 Hello again, so yer I'm still new to maths and scripting, but doing pretty well, but I seem to have this one issue that i can't seem to other come, i got a linked objected, and on the object is some spirals on the side, it on a angle of <90.00000, 33.75000, 166.05000> and it linked into 1 script, my issue im facing is how to get it to spin straight without it going all wobberly, i also have a brush (cash wash brush) to go onto this thing, that may have same issue, but that dosent seem so big seeing as it on more straight angel, anyway how can i stop the spriain from being wonky and let it spin stright on a angle? and here is the section of script {llSetLinkPrimitiveParams(LINK_spinny0,[PRIM_OMEGA,<-1.0,1.0,0.0>,1.0,1.0,PRIM_OMEGA,<1.0,-1.0,0.0>,1.0,1.0,PRIM_LINK_TARGET,LINK_spinny1,<0.0,0.0,.0>,1.0,1.0,PRIM_LINK_TARGET,LINK_spinny2,<0.0,0.0,0.0>,1.0,1.0]); Link to comment Share on other sites More sharing options...
arton Rotaru Posted September 17, 2014 Share Posted September 17, 2014 Multiply the local rotation to the omega vector. rotation GetRot(integer _link){ return llList2Rot(llGetLinkPrimitiveParams(_link, [PRIM_ROT_LOCAL]), 0);}default{ state_entry() { llSetLinkPrimitiveParamsFast(2, [PRIM_OMEGA, <0.0,1.0,0.0> * GetRot(2), 1.0, 1.0]); }} Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now