Fix Bug #1243: http://projects.blender.org/tracker/?func=detail&aid=1243&group_id...
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Thu, 6 May 2004 02:13:07 +0000 (02:13 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Thu, 6 May 2004 02:13:07 +0000 (02:13 +0000)
Use external velocity (velocity set by the game engine - not the physics engine) for Motion Actuators.

source/gameengine/Physics/Sumo/SumoPhysicsController.cpp

index 9780b15177516450b093d43589845437499e28fc..3407f2120e80bec91c574e52b1d67828ce0f5054 100644 (file)
@@ -242,7 +242,7 @@ void                SumoPhysicsController::SetAngularVelocity(float ang_velX,float ang_velY,fl
                MT_Matrix3x3 orn;
                GetWorldOrientation(orn);
 
-               m_sumoObj->setAngularVelocity(local ?
+               m_sumoObj->setExternalAngularVelocity(local ?
                                                orn * ang_vel :
                                                ang_vel);
        }
@@ -256,7 +256,7 @@ void                SumoPhysicsController::SetLinearVelocity(float lin_velX,float lin_velY,flo
                GetWorldOrientation(orn);
 
                MT_Vector3 lin_vel(lin_velX,lin_velY,lin_velZ);
-               m_sumoObj->setLinearVelocity(local ?
+               m_sumoObj->setExternalLinearVelocity(local ?
                                                           orn * lin_vel :
                                                           lin_vel);
        }