Hello,
I want to turn a object round like a wheel. The script i have dus turn around the good axis but it turns not around but turns forward, backwards etc. It is build in a timer to stop the spinning easily. Hope you guys can help me out.
<code>
timer(){
angle = angle + 44;
integer remainder = (integer)angle % 360;
if( remainder == 0.0){
//angle -= 360;
distance += 7.07143;
llMessageLinked(LINK_ROOT,1, (string)((integer)distance) ,NULL_KEY);
}
vector eul = <0,00,angle>; //45 degrees around the z-axis, in Euler form
eul *= DEG_TO_RAD; //convert to radians
rotation quat = llEuler2Rot(eul) * llGetLocalRot(); //convert to quaternion
llSetLocalRot(quat);
}
</code>
regads
Andro