polygon#

box, cylinder and polygon are used in tileGeometry.txt to define the tile depth of a tile.

You can find more information here.

Hierarchy#

Valid Parent Blocks:

ID Properties#

This block should not have an ID.

Parameters#

plane#

Type:

string

No description

Allowed values:

  • XY

  • XZ

  • YZ

points#

Type:

object (object: integer->>integer, kv: ‘x’, pairs: ‘ ‘)

Defines the points of the polygon. the format needs to be X1xY1 X2xY2 X3xY3 and so on. The first point (X1, Y1) is connected to the second point (X2, Y2), the second point (X2, Y2) is connected to the third point (X3, Y3), and so on. The last point is connected to the first point, creating a closed shape.

You can have as many points as you want.

rotate#

(see translate)

Type:

array (array of integer, separator: ‘x’)

No description

translate#

(see translate)

Type:

array (array of integer, separator: ‘x’)

No description