I haven't been doing much lately unfortunately, so I thought I'd make a blog about vertical rotation n' such while I try to mend my brain.
Alright so first off lets start with 90 degree rotations, what I will be rotating is this circle:
Before you can rotate, we need to select a perfect cube around the circle, for example the size of my selection ( //size ) is 51,51,51, all of the #'s should be the same.
After you have selected the object you want to rotate, determine if you want to rotate it west/east or south/north.
Now, simply type in this command:
west/east: //deform swap(x,y) note that //deform swap(y,x) would also work
south/north //deform swap(y,z) note that //deform swap(z,y) would also work
Okay now for off axis rotation, this is a little more tricky but if you know basic trigonometry you'll get it pretty fast.
I don't really feel like teaching how to get equations for angles but I'm sure there are many video tutorials on youtube. Either way here are some basic angles:
30 degrees = pi/6
45 degrees = pi/4
60 degrees = pi/3
90 degrees = pi/2
120 degrees = 2*pi/3
135 degrees = 3*pi/4
150 degrees = 5*pi/6
180 degrees = pi
210 degrees = 7*pi/6
225 degrees = 5*pi/4
240 degrees = 4*pi/3
270 degrees = 3*pi/2
300 degrees = 5*pi/3
315 degrees = 7*pi/4
330 degrees = 11*pi/6
360 degrees = 2*pi
Update: If you prefer to work with degrees, you should use:
x*pi/180
So for example, you might type //deform rotate(x,z,90*pi/180)
which would rotate your object by 90 degrees.
normal //deform rotate(x,z,<degrees>) Example: //deform rotate(x,z,3*pi/4)
west/east //deform rotate(x,y,<degrees>) Example: //deform rotate(x,y,5*pi/3)
south/north //deform rotate(y,z,<degrees>) Example: //deform rotate(y,z,5*pi/6)
Here is a filled in circle when the command //deform rotate(x,y,5*pi/3) was used:
Important idea to note is the degree variable is in radians, meaning if you type in 45 instead of pi/4, it will rotate the object 2578.3 degrees, 45*(180/pi) = 2578.3
Another note, remember to select a perfect cube around your object for //deform rotate as well!
Helpful commands:
//expand <#> [direction] - expands your selection in a given direction, if you do not specify the direction, it takes the direction you are facing.
//pos1 //pos2 - puts your first/ second point of selection to where your feet are
//outset <#> - expands your selection in all directions by a given amount
//inset <#> - contracts your selection in all directions by a given amount
//stack -s <#> - the "-s" will automagically update your selections position for you to be at the location of the stacked object
If there is anything that needs more clarification/could be explained better please let me know and I'll adjust as required when I have the time.
Last thing: these commands are not perfect, if you rotate your object off axis, there will be missing blocks that you must place in, however, rotations of 90 degrees on any axis will paste perfectly.
annnnnnnddddd good luck :)
recommended mod:
WorldEdit CUI - lets you visually see your WE selections, makes things a lot easier :P
74 replies
I tried to figure out why my build would not rotate entirely upside down and this explanation with //deform rotate(y,z,pi) instead of 180 degrees worked wonders!
The World Edit CUI is also a great tool suggestion! I needed that tool badly!
Example: //rotate 90 45 0
Also, nice to see you're still around ;) Hope you're doing well.
Thank you in advance.
I didn`t know about WorldEdit CUI, now all will be easier..
are there sizes too big for it to deform?
pi/18 = 10*
pi/36 = 5*
(10x35 = 350, 5x71 = 355)
35*pi/18 = 350*
71*pi/36 = 355*
Enjoy 100th diamond
thank you so much!
I legit come back every month as my memory is shite hurhur
<3