Skip to content

Commit

Permalink
Removed unnecessary body waking (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto authored Apr 6, 2020
1 parent d17b1eb commit 913a40a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/dynamics/b2_contact_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,5 @@ void b2ContactManager::AddPair(void* proxyUserDataA, void* proxyUserDataB)
}
bodyB->m_contactList = &c->m_nodeB;

// Wake up the bodies
if (fixtureA->IsSensor() == false && fixtureB->IsSensor() == false)
{
bodyA->SetAwake(true);
bodyB->SetAwake(true);
}

++m_contactCount;
}

0 comments on commit 913a40a

Please sign in to comment.