switch(%angle){ case 0: %rot = "1 0 0 0"; case 1: %rot = "0 0 1 90"; case 2: %rot = "0 0 1 180"; case 3: %rot = "0 0 -1 90";}
0 is eastthen it goes counter clockwise
Torque uses cartographic degree alignments, not the ones used in mathematics. 0 is north, 90 is east.