Revision: 6813
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6813&view=rev
Author:   alexcb
Date:     2008-07-08 09:44:11 -0700 (Tue, 08 Jul 2008)

Log Message:
-----------
speachbubble perspective cam orrientation fix

Modified Paths:
--------------
    code/stage/trunk/libstage/model.cc

Modified: code/stage/trunk/libstage/model.cc
===================================================================
--- code/stage/trunk/libstage/model.cc  2008-07-08 06:53:09 UTC (rev 6812)
+++ code/stage/trunk/libstage/model.cc  2008-07-08 16:44:11 UTC (rev 6813)
@@ -947,6 +947,11 @@
                pitch = canvas->current_camera->pitch();
                yaw = canvas->current_camera->yaw();                    
                
+               if( canvas->perspectiveCam == true ) {
+                       pitch = -pitch;
+                       yaw = -yaw;
+               }
+               
                float robotAngle = -rtod(pose.a);
                glPushMatrix();
                


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to