a. get the rotation of the current prim
b. set the prim at the current rotation + a specified rotation
I am able to set the prims rotation with the function below by calling it like this:
setrot(180) (will set it to 180 degrees)
CODE
setrot(integer a)
{
vector eul = <0, 0, a>;
eul *= DEG_TO_RAD;
rotation quat = llEuler2Rot(eul);
llSetRot(quat);
llSay(0,(string)quat);
}
However, if the prim is already at 20 degrees and I specify:
setrot(180)
it should then rotate to 200 degrees.
I certainly have a headache from thinking I had it figured out and then figuring out that I indeed did NOT have it figured out.
Any help would be appreciated.
Thanks!