MCPcopy Create free account
hub / github.com/defold/defold / b2CreateShapeProxy

Function b2CreateShapeProxy

external/box2d/Box2D/src/shape.c:901–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901void b2CreateShapeProxy( b2Shape* shape, b2BroadPhase* bp, b2BodyType type, b2Transform transform, bool forcePairCreation )
902{
903 B2_ASSERT( shape->proxyKey == B2_NULL_INDEX );
904
905 b2UpdateShapeAABBs( shape, transform, type );
906
907 // Create proxies in the broad-phase.
908 shape->proxyKey =
909 b2BroadPhase_CreateProxy( bp, type, shape->fatAABB, shape->filter.categoryBits, shape->id, forcePairCreation );
910 B2_ASSERT( B2_PROXY_TYPE( shape->proxyKey ) < b2_bodyTypeCount );
911}
912
913void b2DestroyShapeProxy( b2Shape* shape, b2BroadPhase* bp )
914{

Callers 3

b2Body_SetTypeFunction · 0.85
b2Body_EnableFunction · 0.85
b2CreateShapeInternalFunction · 0.85

Calls 2

b2UpdateShapeAABBsFunction · 0.85
b2BroadPhase_CreateProxyFunction · 0.85

Tested by

no test coverage detected