Answered
2D Rotate Graphic Symbol on Button Press?
How should I change the following for rotating the graphic symbol 'RFLensHolder' clock-wise by 1 degree?
function updateRF_RotateCW(){
root.RFLensHolder.x+=1;
}
How should I change the following for rotating the graphic symbol 'RFLensHolder' clock-wise by 1 degree?
function updateRF_RotateCW(){
root.RFLensHolder.x+=1;
}
OK, not getting any help here...
I got it working by adding a `+` before the `=` to increment the values of the rotation angle.
So:
function updateRF_RotateCW(){
var angle = 1/Math.PI;
root.RFLensHolder.rotation += angle;
}However, I'm wondering if this is the **correct** way of doing that code. Any pointers?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.