Login

Fancade Wiki

Grammar improvements

... ...
@@ -1,23 +1,23 @@
1
This is a tutorial how to create a perfect regular hexagon in Fancade. This exact method is used to create hexagons in games Hexoban and Hexals.
1
This is a tutorial on how to create a perfect regular hexagon in Fancade. This exact method is used to create hexagons in games Hexoban and Hexals.
2 2
3 3
## Classic method
4 4
5
Hexagons are made out of 6 square pieces, properly placed and rotated. First of all, we need to create one such a square piece. We're going to create a green hexagon with a darker boundary, so our piece looks like this:
5
Hexagons are made out of 6 square pieces, properly placed, and rotated. First of all, we need to create a square piece. We're going to create a green hexagon with a darker boundary, so our piece looks like this:
6 6
7 7
[[/uploads/Screenshot_20210423-140008~2.jpg | height=200px]]
8 8
9
This piece will be copied 5 times and the other pieces will be placed relatively to the original one. To obtain the coordinates of the remaining pieces, we need to add the following vectors to the position of the original piece:
9
This piece will be copied 5 times and the other pieces will be placed relative to the original one. To obtain the coordinates of the remaining pieces, we need to add the following vectors to the position of the original piece:
10 10
- (-0.317, 0, 0.183),
11 11
- (-0.317, 0, 0.549),
12 12
- (0, 0, 0.732),
13 13
- (0.317, 0, 0.183),
14 14
- (0.317, 0, 0.549).
15 15
16
These coordinates are not exact (the exact coordinates are irrational and they require a square root of three), but three decimal places is enough for our hexagon to look good. Let's put them in a list (starting from the index 1 for convenience):
16
These coordinates are not exact (the exact coordinates are irrational and they require a square root of three), but three decimal places is enough for our hexagon to look good. Let's put them in a list (starting from index 1 for convenience):
17 17
18 18
[[/uploads/Screenshot_20210423-140026~2.jpg | height=500px]]
19 19
20
Now our hexagon can be created with a simple loop. We create the remaining pieces and we set their positions using the list above. We also need to rotate them (by 60°, 120° etc) and for that we're going to use Make Rotation block. The loop looks like this:
20
Now our hexagon can be created with a simple loop. We create the remaining pieces and we set their positions using the list above. We also need to rotate them (by 60°, 120° etc) and for that, we're going to use the Make Rotation block. The loop looks like this:
21 21
22 22
[[/uploads/Screenshot_20210423-140054~2.jpg | height=450px]]
23 23
Fancade Wiki