I'm working on a karambit that is supposed to spin around your finger on the local x axis (script is in a root prim). I'm using TargetOmega to do the spinning, but i've run into nothing but problems. The TargetOmega doesnt rotare around the LOCAL x axis like i want it to, and it rotates on the attachment axis instead. Then, i have another part in the script that is supposed to thet the knifes rotation back to its original raotaion, but it doesnt seem to be doing that correctly either. I've been trying to figure this out for a few days now, to no avail. If someone knowledgeable with this could shed some light on this situation, i would appreciate it greatly. Thanks! Heres the bit of code: vector rot = llRot2Euler( llGetLocalRot() );
llStartAnimation("Spin");
llPlaySound("karambitspin", 1.0);
llTargetOmega(<1.0,0.0,0.0>*llGetRot(),20,1);
llSleep(1);
llTargetOmega(ZERO_VECTOR,0,0);
llStopAnimation("Spin");
llSetLocalRot(llEuler2Rot(rot));