MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / BroadPhaseSystem

Method BroadPhaseSystem

src/systems/BroadPhaseSystem.cpp:38–52  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

36
37// Constructor
38BroadPhaseSystem::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
55bool BroadPhaseSystem::testOverlappingShapes(int32 shape1BroadPhaseId, int32 shape2BroadPhaseId) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected