MCPcopy Create free account
hub / github.com/cinder/Cinder / CreateProxies

Method CreateProxies

blocks/Box2D/src/Box2D/Dynamics/b2Fixture.cpp:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void b2Fixture::CreateProxies(b2BroadPhase* broadPhase, const b2Transform& xf)
123{
124 b2Assert(m_proxyCount == 0);
125
126 // Create proxies in the broad-phase.
127 m_proxyCount = m_shape->GetChildCount();
128
129 for (int32 i = 0; i < m_proxyCount; ++i)
130 {
131 b2FixtureProxy* proxy = m_proxies + i;
132 m_shape->ComputeAABB(&proxy->aabb, xf, i);
133 proxy->proxyId = broadPhase->CreateProxy(proxy->aabb, proxy);
134 proxy->fixture = this;
135 proxy->childIndex = i;
136 }
137}
138
139void b2Fixture::DestroyProxies(b2BroadPhase* broadPhase)
140{

Callers 2

CreateFixtureMethod · 0.80
SetActiveMethod · 0.80

Calls 3

GetChildCountMethod · 0.45
ComputeAABBMethod · 0.45
CreateProxyMethod · 0.45

Tested by

no test coverage detected