Revision: 6815
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6815&view=rev
Author:   alexcb
Date:     2008-07-08 10:32:51 -0700 (Tue, 08 Jul 2008)

Log Message:
-----------
fixed orthogonal move method to reflect new yaw values

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

Modified: code/stage/trunk/libstage/camera.cc
===================================================================
--- code/stage/trunk/libstage/camera.cc 2008-07-08 17:25:59 UTC (rev 6814)
+++ code/stage/trunk/libstage/camera.cc 2008-07-08 17:32:51 UTC (rev 6815)
@@ -158,11 +158,12 @@
                y = -100;
        
        //adjust for yaw angle
-       _x += cos( dtor( _yaw ) ) * x;
-       _y += -sin( dtor( _yaw ) ) * x;
+       float yaw = -dtor( _yaw );
+       _x += cos( yaw ) * x;
+       _y += -sin( yaw ) * x;
        
-       _x += sin( dtor( _yaw ) ) * y;
-       _y += cos( dtor( _yaw ) ) * y;
+       _x += sin( yaw ) * y;
+       _y += cos( yaw ) * y;
 }
 
 //TODO re-evaluate the way the camera is shifted when the mouse zooms - it 
might be possible to simplify


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
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to