diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-13 03:48:40 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-13 03:48:40 +0400 |
commit | 1e5ea3e5c43f8cb4d890a7e1e2c1283f33b6a057 (patch) | |
tree | d1b0319e354f634484a677a06b69dcffb9f143ca /source/gameengine/Ketsji | |
parent | c045cf2c0dbb1d5f9240f4436fcffd43db8dbd75 (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')
-rw-r--r-- | source/gameengine/Ketsji/KX_TrackToActuator.cpp | 2 |
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], |