MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / SynchronizeFixtures

Method SynchronizeFixtures

engine/source/Box2D/Dynamics/b2Body.cpp:443–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void b2Body::SynchronizeFixtures()
444{
445 b2Transform xf1;
446 xf1.q.Set(m_sweep.a0);
447 xf1.p = m_sweep.c0 - b2Mul(xf1.q, m_sweep.localCenter);
448
449 b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase;
450 for (b2Fixture* f = m_fixtureList; f; f = f->m_next)
451 {
452 f->Synchronize(broadPhase, xf1, m_xf);
453 }
454}
455
456void b2Body::SetActive(bool flag)
457{

Callers 2

SolveMethod · 0.80
SolveTOIMethod · 0.80

Calls 3

b2MulFunction · 0.85
SynchronizeMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected