fix rigidbody activation

This commit is contained in:
Chuyuan Fu 2020-03-05 10:48:56 -08:00
parent 8a3e2e9fa6
commit b37448278a

View File

@ -9045,6 +9045,7 @@ bool PhysicsServerCommandProcessor::processChangeDynamicsInfoCommand(const struc
if (clientCmd.m_changeDynamicsInfoArgs.m_activationState & eActivationStateWakeUp)
{
rb->forceActivationState(ACTIVE_TAG);
rb->setDeactivationTime(0.0);
}
if (clientCmd.m_changeDynamicsInfoArgs.m_activationState & eActivationStateSleep)
{