- const Point &pos = i->first->get_track().get_position();
- Point minp;
- Point maxp;
- i->first->get_type().get_bounds(0, minp, maxp);
- float rot = i->first->get_track().get_rotation();
- float c = cos(rot);
- float s = sin(rot);
-
- GL::Vector3 p((minp.x+maxp.x)/2, (minp.y+maxp.y)/2, 0);
- p = GL::Vector3(pos.x+c*p.x-s*p.y, pos.y+s*p.x+c*p.y, pos.z+0.02);
- p = camera.project(p);
+ Point node = i->first->get_node();
+ GL::Vector3 p = camera.project(GL::Vector3(node.x, node.y, node.z));