The // doesn't work part should draw a box from the center (glsYc) up to the calculated size if it's positive, and down, if the size is negative. So the vertices are:
Code: Select all
4 3
1 2 - center here
Code: Select all
1 2 - center here
4 3
Code: Select all
4 3
- center here
1 2 - bottom
Code: Select all
- center here
4 3
1 2 - bottom