Constructor
| 46 | |
| 47 | // Constructor |
| 48 | ContactSolverSystem::ContactSolverSystem(MemoryManager& memoryManager, PhysicsWorld& world, Islands& islands, |
| 49 | BodyComponents& bodyComponents, RigidBodyComponents& rigidBodyComponents, |
| 50 | ColliderComponents& colliderComponents, decimal& restitutionVelocityThreshold) |
| 51 | :mMemoryManager(memoryManager), mWorld(world), mTimeStep(-1), mRestitutionVelocityThreshold(restitutionVelocityThreshold), |
| 52 | mContactConstraints(nullptr), mContactPoints(nullptr), |
| 53 | mNbContactPoints(0), mNbContactManifolds(0), |
| 54 | mIslands(islands), mAllContactManifolds(nullptr), mAllContactPoints(nullptr), |
| 55 | mBodyComponents(bodyComponents), mRigidBodyComponents(rigidBodyComponents), |
| 56 | mColliderComponents(colliderComponents), mIsSplitImpulseActive(true) { |
| 57 | |
| 58 | #ifdef IS_RP3D_PROFILING_ENABLED |
| 59 | |
| 60 | mProfiler = nullptr; |
| 61 | #endif |
| 62 | |
| 63 | } |
| 64 | |
| 65 | // Initialize the contact constraints |
| 66 | void ContactSolverSystem::init(Array<ContactManifold>* contactManifolds, Array<ContactPoint>* contactPoints, decimal timeStep) { |
nothing calls this directly
no outgoing calls
no test coverage detected