diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-04-29 21:23:19 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-04-29 21:23:19 +0400 |
commit | 0331c77df1669b59130c530ff356108421e400a2 (patch) | |
tree | f9fea67dd24db78c87a8ec990891fe5f1553b29f /source | |
parent | 343edf2722a9e114b98944c1147676e630e699b7 (diff) |
Fix for [#31166] 2.63 applyRotation() makes Dynamic and Rigid object spin very fast
This bug was caused by r45902. CcdPhysicsController::RelativeRotate() was reading 2 values past the input because it was actually being passed a float[12] when it asked for a float[9] by KX_BulletPhysicsController::RelativeRotate(). Now KX_BulletPhysicsController::RelativeRotate() passes in a float[9] like it should have done to begin with.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Ketsji/KX_BulletPhysicsController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp b/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp index 9940b400527..f5926818e7d 100644 --- a/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp @@ -121,8 +121,8 @@ void KX_BulletPhysicsController::RelativeTranslate(const MT_Vector3& dloc,bool l void KX_BulletPhysicsController::RelativeRotate(const MT_Matrix3x3& drot,bool local) { - float rotval[12]; - drot.getValue(rotval); + float rotval[9]; + drot.getValue3x3(rotval); CcdPhysicsController::RelativeRotate(rotval,local); } |