[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53757] trunk/blender/source/gameengine/ Ketsji/KX_TrackToActuator.cpp: bge track-to actuator: reverse the order of the cross product rather then negating.
Campbell Barton
ideasman42 at gmail.com
Sun Jan 13 04:48:56 CET 2013
Revision: 53757
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53757
Author: campbellbarton
Date: 2013-01-13 03:48:48 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
bge track-to actuator: reverse the order of the cross product rather then negating.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_TrackToActuator.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_TrackToActuator.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_TrackToActuator.cpp 2013-01-13 02:28:57 UTC (rev 53756)
+++ trunk/blender/source/gameengine/Ketsji/KX_TrackToActuator.cpp 2013-01-13 03:48:48 UTC (rev 53757)
@@ -294,7 +294,7 @@
{
// (1.0 , 0.0 , 0.0 ) x direction is forward, z (0.0 , 0.0 , 1.0 ) up
left = dir.safe_normalized();
- dir = -(left.cross(up)).safe_normalized();
+ dir = up.cross(left).safe_normalized();
mat.setValue (
left[0], dir[0],up[0],
left[1], dir[1],up[1],
@@ -334,7 +334,7 @@
{
// (1.0 , 0.0 , 0.0 ) x direction is forward, z (0.0 , 0.0 , 1.0 ) up
left = -dir.safe_normalized();
- dir = -(left.cross(up)).safe_normalized();
+ dir = up.cross(left).safe_normalized();
mat.setValue (
left[0], dir[0],up[0],
left[1], dir[1],up[1],
@@ -373,7 +373,7 @@
{
// (1.0 , 0.0 , 0.0 ) -x direction is forward, z (0.0 , 0.0 , 1.0 ) up
left = -dir.safe_normalized();
- dir = -(left.cross(up)).safe_normalized();
+ dir = up.cross(left).safe_normalized();
mat.setValue (
left[0], dir[0],up[0],
left[1], dir[1],up[1],
More information about the Bf-blender-cvs
mailing list