Author Topic: Rotation to Angle ID?  (Read 543 times)

how do you do it? Is there a function some one made, I can't find one.

To one of you're earlier posts Truce replied with this.
You're correct. For bricks, you can use this switch to convert:

Code: [Select]
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";
}
What else do you want? If you need it reversed, you can do that, no need for some else to do it for you
« Last Edit: February 19, 2013, 04:57:09 PM by ZSNO »

To one of you're earlier posts Truce replied with this.What else do you want? If you need it reversed, you can do that, no need for some else to do it for you
That is static though, lets see I have a brick with the rotation that is not one of those, how would I snap it back?

Just find the cardinal direction it's closest to.