Better fix for BGE bug #7892: dRot is reversed on dynamic objects. Make sure that graphic, Bullet and Sumo(deprecated) objects rotate the same way. This fix reverses the rotation of non-dynamic objects compared to 2.45: you will need to change the sign of dRot in 2.45 games for them to work correctly in 2.46

This commit is contained in:
Benoit Bolsee
2008-04-23 21:48:17 +00:00
parent 408fcd6a33
commit f4cc03b0f1
2 changed files with 3 additions and 4 deletions

View File

@@ -315,7 +315,6 @@ void KX_GameObject::ApplyRotation(const MT_Vector3& drot,bool local)
GetSGNode()->RelativeRotate(rotmat,local);
if (m_pPhysicsController1) { // (IsDynamic())
rotmat.transpose();
m_pPhysicsController1->RelativeRotate(rotmat,local);
}
}