I don't understand the orientation in the
set_cell_item ( int x, int y, int z, int item, int orientation=0 )
The documentation say:
Optionally, the item’s orientation can be passed.
For example: When i use 0 it is original. If i use 10 it is 180 degree rotated. In the source code of the engine there is p.rot used.
Maybe someone can me explain how to calculate the orientation?