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_NearSensor.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_NearSensor.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_NearSensor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_NearSensor.cpp b/source/gameengine/Ketsji/KX_NearSensor.cpp index fac2302b85e..34561045cab 100644 --- a/source/gameengine/Ketsji/KX_NearSensor.cpp +++ b/source/gameengine/Ketsji/KX_NearSensor.cpp @@ -116,6 +116,7 @@ CValue* KX_NearSensor::GetReplica() //replica->m_sumoObj->setMargin(m_Margin); //replica->m_sumoObj->setClientObject(replica->m_client_info); + ((KX_GameObject*)replica->GetParent())->GetSGNode()->ComputeWorldTransforms(NULL); replica->SynchronizeTransform(); return replica; @@ -139,7 +140,7 @@ void KX_NearSensor::ReParent(SCA_IObject* parent) client_info->m_sensors.push_back(this); SCA_ISensor::ReParent(parent); */ - + ((KX_GameObject*)GetParent())->GetSGNode()->ComputeWorldTransforms(NULL); SynchronizeTransform(); } |