]> git.mxchange.org Git - simgear.git/commitdiff
set sign orientation such, that when the sign heading=0, one looks straight
authormfranz <mfranz>
Wed, 12 Apr 2006 12:13:03 +0000 (12:13 +0000)
committermfranz <mfranz>
Wed, 12 Apr 2006 12:13:03 +0000 (12:13 +0000)
on the sign face when looking North

simgear/scene/tgdb/apt_signs.cxx

index b3868d34506c4b02a3b7731e215bb3950cd35960..ebd626d43d3ac8b9b385979159f1d371aafcb3a8 100644 (file)
@@ -274,10 +274,10 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib,
 
         // vertices
         ssgVertexArray *vl = new ssgVertexArray(4);
-        vl->add(hpos,            0, dist);
-        vl->add(hpos + abswidth, 0, dist);
-        vl->add(hpos,            0, dist + height);
-        vl->add(hpos + abswidth, 0, dist + height);
+        vl->add(0, hpos,            dist);
+        vl->add(0, hpos + abswidth, dist);
+        vl->add(0, hpos,            dist + height);
+        vl->add(0, hpos + abswidth, dist + height);
 
         // texture coordinates
         ssgTexCoordArray *tl = new ssgTexCoordArray(4);
@@ -311,10 +311,10 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib,
 
     // minimalistic backside
     ssgVertexArray *vl = new ssgVertexArray(4);
-    vl->add(hpos,               0, dist);
-    vl->add(hpos - total_width, 0, dist);
-    vl->add(hpos,               0, dist + sign_height);
-    vl->add(hpos - total_width, 0, dist + sign_height);
+    vl->add(0, hpos,               dist);
+    vl->add(0, hpos - total_width, dist);
+    vl->add(0, hpos,               dist + sign_height);
+    vl->add(0, hpos - total_width, dist + sign_height);
 
     ssgNormalArray *nl = new ssgNormalArray(1);
     nl->add(0, 1, 0);