Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-01-13 03:48:40 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-01-13 03:48:40 +0400
commit1e5ea3e5c43f8cb4d890a7e1e2c1283f33b6a057 (patch)
treed1b0319e354f634484a677a06b69dcffb9f143ca /source/gameengine/Ketsji/KX_TrackToActuator.cpp
parentc045cf2c0dbb1d5f9240f4436fcffd43db8dbd75 (diff)
BGE: Fix from HG1 for bug [#32831] "TrackTo aktuator +X direction not working correct" reported by HG1.
Looks like a vector needed to be inverted for the +X calculation.
Diffstat (limited to 'source/gameengine/Ketsji/KX_TrackToActuator.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_TrackToActuator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_TrackToActuator.cpp b/source/gameengine/Ketsji/KX_TrackToActuator.cpp
index 1597948bafe..be2b40316e8 100644
--- a/source/gameengine/Ketsji/KX_TrackToActuator.cpp
+++ b/source/gameengine/Ketsji/KX_TrackToActuator.cpp
@@ -294,7 +294,7 @@ bool KX_TrackToActuator::Update(double curtime, bool frame)
{
// (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 = -(left.cross(up)).safe_normalized();
mat.setValue (
left[0], dir[0],up[0],
left[1], dir[1],up[1],