Constructor
| 36 | |
| 37 | // Constructor |
| 38 | BroadPhaseSystem::BroadPhaseSystem(CollisionDetectionSystem& collisionDetection, ColliderComponents& collidersComponents, |
| 39 | TransformComponents& transformComponents, RigidBodyComponents& rigidBodyComponents) |
| 40 | :mDynamicAABBTree(collisionDetection.getMemoryManager().getHeapAllocator(), DYNAMIC_TREE_FAT_AABB_INFLATE_PERCENTAGE), |
| 41 | mCollidersComponents(collidersComponents), mTransformsComponents(transformComponents), |
| 42 | mRigidBodyComponents(rigidBodyComponents), mMovedShapes(collisionDetection.getMemoryManager().getHeapAllocator()), |
| 43 | mCollisionDetection(collisionDetection) { |
| 44 | |
| 45 | #ifdef IS_RP3D_PROFILING_ENABLED |
| 46 | |
| 47 | |
| 48 | mProfiler = nullptr; |
| 49 | |
| 50 | #endif |
| 51 | |
| 52 | } |
| 53 | |
| 54 | // Return true if the two broad-phase collision shapes are overlapping |
| 55 | bool BroadPhaseSystem::testOverlappingShapes(int32 shape1BroadPhaseId, int32 shape2BroadPhaseId) const { |
nothing calls this directly
no outgoing calls
no test coverage detected