Rotate
Rotates all nested geometry around the origin by a given angle. The rotation is scoped — it only affects blocks inside its body slot.
Block
Interactive preview is available in the interactive reader.
Parameters
angle (deg)- Rotation in degrees. Positive = counterclockwise. Accepts math expressions.
body- Statement slot — geometry and operations affected by this rotation.
How it works
Rotate turns all nested geometry around the bed center (origin). This is useful for creating radial patterns, angled shapes, and spiral decorations.
Creating radial patterns
Combine Repeat and Rotate for radial arrangements:
- 6-fold symmetry: Repeat 6 times, each with Rotate 60°
- 8-fold symmetry: Repeat 8 times, each with Rotate 45°
The formula is: angle = 360 / number of copies.