Revision: 2588
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2588&view=rev
Author:   ulteq
Date:     2012-05-17 18:13:18 +0000 (Thu, 17 May 2012)
Log Message:
-----------
-Codechange: CameraSystem WIP
fix for cinecam

Modified Paths:
--------------
    trunk/source/main/gfx/camera/CameraBehaviorVehicleCineCam.cpp

Modified: trunk/source/main/gfx/camera/CameraBehaviorVehicleCineCam.cpp
===================================================================
--- trunk/source/main/gfx/camera/CameraBehaviorVehicleCineCam.cpp       
2012-05-17 17:53:14 UTC (rev 2587)
+++ trunk/source/main/gfx/camera/CameraBehaviorVehicleCineCam.cpp       
2012-05-17 18:13:18 UTC (rev 2588)
@@ -42,6 +42,11 @@
        Vector3 roll = 
(currTruck->nodes[currTruck->cameranodepos[currTruck->currentcamera]].smoothpos
                                  - 
currTruck->nodes[currTruck->cameranoderoll[currTruck->currentcamera]].smoothpos).normalisedCopy();
 
+       if ( currTruck->revroll[currTruck->currentcamera] )
+       {
+               roll = -roll;
+       }
+
        Vector3 up = dir.crossProduct(roll);
 
        roll = up.crossProduct(dir);

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
Rigsofrods-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to