positioning billboards

Maybe it’s a very simple thing, but i was wondering, how can i position billboards on exact coordinates?
i mean…i used Transform3D to position them, but i want to position the center of the billboard on the coordinates and don’t know how to do it…

this is what i get:



+-----+
|     |
|     |
|     |
|     |
|     |
+--*--+

where * is the center
and i want it like this:

+-----+
|     |
|     |
|  *  |
|     |
|     |
+-----+


I haven’t tested it, but that seems to be a problem of the Billboards:


// calculate all the corners of the quad
vec[0].set(-halfParticleWidth, 0, 0);
vec[1].set(+halfParticleWidth, 0, 0);
vec[2].set(+halfParticleWidth, height, 0);
vec[3].set(-halfParticleWidth, height, 0);

Maybe we could change that in the code. It is quite simple. Who actually uses Billboards and would be fazed by such a change?

But as long as it is like it is, you can just calculate it on your own and add half the height of the Billboard to all y-coordinates of your positionings.

had to extend the Billboad class, but it works now :slight_smile: thanks