9 #include "imstkRbdConstraint.h" 10 #include "imstkMacros.h" 23 std::shared_ptr<RigidBody> obj1,
24 std::shared_ptr<RigidBody> obj2,
25 const Vec3d& contactPt,
26 const Vec3d& contactNormal,
27 const double contactDepth,
28 const double frictionCoefficient,
29 const Side side = Side::AB);
35 void compute(
double dt)
override;
40 double m_contactDepth;
41 double m_frictionCoefficient;
A rigid body constraint to apply friction.
Abstract class for rigid body constraints. A RbdConstraint should mainly provide a constraint jacobia...
void compute(double dt) override
Compute constraint jacobian.