diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-12-04 07:13:42 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-12-04 07:13:42 +0300 |
commit | 2ec5d00da91848ce8c56d383a23a35b76243b956 (patch) | |
tree | 293000afd2bfeb82b9633aa285407dcbb58f6fd7 /source/gameengine/Ketsji/KX_MotionState.cpp | |
parent | fc691cdb5e0c23bf36e68a14903d6bc4d0cc5242 (diff) |
fixed some motionstate synchronization issues
nearsensor was not synchronized at the start
wheels not synchronized properly (one frame delay)
Diffstat (limited to 'source/gameengine/Ketsji/KX_MotionState.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_MotionState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_MotionState.cpp b/source/gameengine/Ketsji/KX_MotionState.cpp index 14849ef704c..cd01c0466cd 100644 --- a/source/gameengine/Ketsji/KX_MotionState.cpp +++ b/source/gameengine/Ketsji/KX_MotionState.cpp @@ -73,7 +73,7 @@ void KX_MotionState::getWorldOrientation(float& quatIma0,float& quatIma1,float& void KX_MotionState::setWorldPosition(float posX,float posY,float posZ) { m_node->SetLocalPosition(MT_Point3(posX,posY,posZ)); - //m_node->SetWorldPosition(MT_Point3(posX,posY,posZ)); + m_node->SetWorldPosition(MT_Point3(posX,posY,posZ)); } void KX_MotionState::setWorldOrientation(float quatIma0,float quatIma1,float quatIma2,float quatReal) @@ -85,7 +85,7 @@ void KX_MotionState::setWorldOrientation(float quatIma0,float quatIma1,float qua orn[3] = quatReal; m_node->SetLocalOrientation(orn); - //m_node->SetWorldOrientation(orn); + m_node->SetWorldOrientation(orn); } |