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

Method ContactSolverSystem

src/systems/ContactSolverSystem.cpp:48–63  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

46
47// Constructor
48ContactSolverSystem::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
66void ContactSolverSystem::init(Array<ContactManifold>* contactManifolds, Array<ContactPoint>* contactPoints, decimal timeStep) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected