diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-21 16:37:27 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-21 16:37:27 +0400 |
commit | 4ae4ecd3ce3528a3a29ebdaaab8bb2eb01c0f5bf (patch) | |
tree | 448f96f0b71ac0e444a576effcef74b55eeadb00 /source/gameengine/Ketsji/KX_OdePhysicsController.cpp | |
parent | 8f17a66036012ae3f527b95ea9489afbfb212429 (diff) |
BGE patch: Optimization of bullet adaptation layer - part 1.
First batch of optimizaton of the bullet adaptation layer in the BGE.
- remove circular motion state update.
- optimization of physic adaptation layer for bullet: bypass
unecessary conversion of rotation matrix to quaternion and back.
- remove double updates during object replication.
Diffstat (limited to 'source/gameengine/Ketsji/KX_OdePhysicsController.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_OdePhysicsController.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_OdePhysicsController.cpp b/source/gameengine/Ketsji/KX_OdePhysicsController.cpp index 8b0a6dafc22..05feb11a2bc 100644 --- a/source/gameengine/Ketsji/KX_OdePhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_OdePhysicsController.cpp @@ -133,8 +133,9 @@ void KX_OdePhysicsController::SetLinearVelocity(const MT_Vector3& lin_vel,bool l ODEPhysicsController::SetLinearVelocity(lin_vel[0],lin_vel[1],lin_vel[2],local); } -void KX_OdePhysicsController::setOrientation(const MT_Quaternion& orn) +void KX_OdePhysicsController::setOrientation(const MT_Matrix3x3& rot) { + MT_Quaternion orn = rot.getRotation(); ODEPhysicsController::setOrientation(orn[0],orn[1],orn[2],orn[3]); } |