[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14389] trunk/blender/source/gameengine/ Ketsji/KX_GameObject.cpp: fix BGE patch #7892: dRot motion is reversed on non-dynamic objects
Benoit Bolsee
benoit.bolsee at online.be
Fri Apr 11 23:19:59 CEST 2008
Revision: 14389
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14389
Author: ben2610
Date: 2008-04-11 23:19:00 +0200 (Fri, 11 Apr 2008)
Log Message:
-----------
fix BGE patch #7892: dRot motion is reversed on non-dynamic objects
Positive dRot motion actuator will now make the dynamic and non-dynamic objects rotate counter-clock wise.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2008-04-11 20:46:12 UTC (rev 14388)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2008-04-11 21:19:00 UTC (rev 14389)
@@ -314,12 +314,13 @@
void KX_GameObject::ApplyRotation(const MT_Vector3& drot,bool local)
{
MT_Matrix3x3 rotmat(drot);
- rotmat.transpose();
-
- if (m_pPhysicsController1) // (IsDynamic())
+
+ GetSGNode()->RelativeRotate(rotmat,local);
+
+ if (m_pPhysicsController1) { // (IsDynamic())
+ rotmat.transpose();
m_pPhysicsController1->RelativeRotate(rotmat,local);
- // in worldspace
- GetSGNode()->RelativeRotate(rotmat,local);
+ }
}
More information about the Bf-blender-cvs
mailing list