Fix T37325: applyRotation() wasn't working correctly on rigid bodies in the game engine.

During the physics cleanup/refactor, the rotation matrix in
CcdPhysicsController::RelativeRotate() became transposed.
This commit is contained in:
Mitchell Stokes 2013-11-17 16:04:26 -08:00
parent 84c30edbdf
commit 537f28fc0e
Notes: blender-bot 2023-02-14 11:39:10 +01:00
Referenced by issue #37325, applyRotation seems broken in blender-current
1 changed files with 3 additions and 3 deletions

View File

@ -947,9 +947,9 @@ void CcdPhysicsController::RelativeRotate(const MT_Matrix3x3& rotval,bool local
return;
}
btMatrix3x3 drotmat(rotval[0].x(), rotval[1].x(), rotval[2].x(),
rotval[0].y(), rotval[1].y(), rotval[2].y(),
rotval[0].z(), rotval[1].z(), rotval[2].z());
btMatrix3x3 drotmat(rotval[0].x(), rotval[0].y(), rotval[0].z(),
rotval[1].x(), rotval[1].y(), rotval[1].z(),
rotval[2].x(), rotval[2].y(), rotval[2].z());
btMatrix3x3 currentOrn;