1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-12 12:50:27 +02:00

Added 6D facedir management and changed rotate and flip behavior concerning orientation

This commit is contained in:
Pierre-Yves Rollo
2015-10-27 09:13:51 +01:00
parent fc037e9c82
commit 6bab328d2b
5 changed files with 154 additions and 74 deletions

View File

@ -87,9 +87,9 @@ Rotates a region defined by the positions `pos1` and `pos2` by `angle` degrees c
Returns the number of nodes rotated, the new position 1, and the new position 2.
### count = worldedit.orient(pos1, pos2, angle)
### count = worldedit.orient(pos1, pos2, operation, axis, angle)
Rotates all oriented nodes in a region defined by the positions `pos1` and `pos2` by `angle` degrees clockwise (90 degree increment) around the Y axis.
Change orientation of all oriented nodes in a region defined by the positions `pos1` and `pos2` performing `operation` (rotate or flip) around the `axis` axis by angle `angle` (90 degree increment, unused for flip operation)
Returns the number of nodes oriented.