9 #include "imstkPbdCollisionConstraint.h" 32 double stiffnessA,
double stiffnessB);
41 double& c, std::vector<Vec3d>& dcdx)
override;
The PbdCollisionConstraint implements two sided collision. This allows the usage of differing stiffne...
std::pair< int, int > PbdParticleId
Index pair that refers to a particle in a PbdState. Index 0 is the body id, Index 1 is the particle i...
bool computeValueAndGradient(PbdState &bodies, double &c, std::vector< Vec3d > &dcdx) override
Compute value and gradient of constraint function.
This constraint resolves two vertices to each other.
Provides interface for accessing particles from a 2d array of PbdBody,Particles.
void initConstraint(const PbdParticleId &ptA, const PbdParticleId &ptB, double stiffnessA, double stiffnessB)
Initialize constraint.