+ const Vector &pos = track.get_position();
+ Vector minp;
+ Vector maxp;
+ type.get_bounds(0, minp, maxp);
+ float rot = track.get_rotation();
+ float c = cos(rot);
+ float s = sin(rot);
+
+ Vector center((minp.x+maxp.x)/2, (minp.y+maxp.y)/2, 0);
+ return Vector(pos.x+c*center.x-s*center.y, pos.y+s*center.x+c*center.y, pos.z+0.02);
+}