Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I want to make a Torus in Minecraft - I found the formula on the SK Wiki;

//g stone (0.75-sqrt(x^2+y^2))^2+z^2 < 0.25^2

This creates a vertical torus, extending the torus in the y plane.

What I want is a horizontal torus, along the ground. I have tried simply making a Torus as is and Flipping/Rotating it, but I am unable to get it into the horizontal plane this way, and unable to modify the formula myself to give me the shape I need.

share|improve this question
add comment

1 Answer

To change the orientation, just switch z with y in the equation, as such:

//g stone (0.75-sqrt(x^2+z^2))^2+y^2 < 0.25^2

Basically, the original equation create a torus around the z axis, which gives it a vertical orientation. To make a horizontal torus, we want to put it around the y axis, so we put the y term where z currently is and move z around to keep the equation in torus form.

share|improve this answer
    
Thank you, that's this problem solved. –  Aphrael Oct 13 '12 at 7:35
    
@Aphrael If this answer solved your problem you should mark it as accepted by clicking green checkmark thingy next to the question –  Serge Bekenkamp Oct 13 '12 at 12:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.