enable to suspend and restore dynamics. also, catched the case where failed dynamics (resulting in infinite AABB sizes) doesn't mess up the entire simulation, it just get's deactivated (with a message that a simulation error happened)
This commit is contained in:
@@ -31,7 +31,7 @@ CollisionObject::CollisionObject()
|
||||
|
||||
void CollisionObject::SetActivationState(int newState)
|
||||
{
|
||||
if (m_activationState1 != DISABLE_DEACTIVATION)
|
||||
if ( (m_activationState1 != DISABLE_DEACTIVATION) && (m_activationState1 != DISABLE_SIMULATION))
|
||||
m_activationState1 = newState;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user