9 #include "imstkPbdConstraint.h" 40 void setStiffnessA(
const double stiffnessA) { m_stiffness[0] = stiffnessA; }
41 double getStiffnessB()
const {
return m_stiffness[1]; }
42 void setStiffnessB(
const double stiffnessB) { m_stiffness[1] = stiffnessB; }
56 const double dt,
const SolverType& type)
override;
62 std::array<double, 2> m_stiffness = { 1.0, 1.0 };
The PbdCollisionConstraint implements two sided collision. This allows the usage of differing stiffne...
std::vector< bool > m_bodiesSides
Stores 0 or 1 to indicate side of particle.
void projectConstraint(PbdState &bodies, const double dt, const SolverType &type) override
Performs the actual positional solve.
double getStiffnessA() const
Get/Set stiffness A or B.
Base Constraint class for Position based dynamics constraints.
void setEnableBoundaryCollisions(const double enableBoundaryCollisions)
Get enableBoundaryCollision.
bool m_enableBoundaryCollisions
SolverType
Type of solvers.
Provides interface for accessing particles from a 2d array of PbdBody,Particles.