9 #include "imstkPbdBaryPointToPointConstraint.h" 10 #include "imstkRbdConstraint.h" 31 double& c, std::vector<Vec3d>& dcdx)
override;
35 void compute(
double dt)
override;
43 double m_beta = 0.0001;
44 mutable Vec3d m_diff = Vec3d::Zero();
Abstract class for rigid body constraints. A RbdConstraint should mainly provide a constraint jacobia...
bool computeValueAndGradient(PbdState &bodies, double &c, std::vector< Vec3d > &dcdx) override
Compute value and gradient of constraint function.
Provides interface for accessing particles from a 2d array of PbdBody,Particles.
Constrains two points from two separate cells/elements given via barycentric coordinates to be coinci...
double getRestValue() const
Return the rest configuration for the constraint.
void compute(double dt) override
Compute constraint jacobian.