Also added fix for Direct.
This commit is contained in:
@@ -780,6 +780,22 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd
|
|||||||
{
|
{
|
||||||
userConstraintPtr->m_maxAppliedForce = serverConstraint->m_maxAppliedForce;
|
userConstraintPtr->m_maxAppliedForce = serverConstraint->m_maxAppliedForce;
|
||||||
}
|
}
|
||||||
|
if (serverCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_GEAR_RATIO)
|
||||||
|
{
|
||||||
|
userConstraintPtr->m_gearRatio = serverConstraint->m_gearRatio;
|
||||||
|
}
|
||||||
|
if (serverCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_RELATIVE_POSITION_TARGET)
|
||||||
|
{
|
||||||
|
userConstraintPtr->m_relativePositionTarget = serverConstraint->m_relativePositionTarget;
|
||||||
|
}
|
||||||
|
if (serverCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_ERP)
|
||||||
|
{
|
||||||
|
userConstraintPtr->m_erp = serverConstraint->m_erp;
|
||||||
|
}
|
||||||
|
if (serverCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_GEAR_AUX_LINK)
|
||||||
|
{
|
||||||
|
userConstraintPtr->m_gearAuxLink = serverConstraint->m_gearAuxLink;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user