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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user