| 899 | } |
| 900 | |
| 901 | void 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 | |
| 913 | void b2DestroyShapeProxy( b2Shape* shape, b2BroadPhase* bp ) |
| 914 | { |
no test coverage detected