I have a rotation script. I would like to know where i can change the rotation axis. How much do you take to tell me?
integer dialog_channel= 8; // set a dialog channel
// list menu = [ "Out", "In"];
vector startPosition;
float groundLevel;
vector gVecLocalOffset2 = <0.0, 0.0, 0.0>;
integer flag ;
rotation vRotchild1;
float displacement = 0;
In()
{
gVecLocalOffset2 = <0,0,-displacement>;
vRotchild1 = (rotation)((string)llGetPrimitiveParams( [PRIM_ROTATION] ));
}
default
{ // #1 Default
state_entry()
{
llListen( dialog_channel, "", NULL_KEY, "");
}
touch_start(integer total_number)
{
vRotchild1 = (rotation)((string)llGetPrimitiveParams([PRIM_ROTATION] ));
llTargetOmega(<0,1,0>,0.3,PI);
// llTargetOmega(,0.3,PI);
}
listen(integer channel, string name, key id, string choice )
{
}
}