std::set< int > fBodies
indices of bodies in the constrained set
void AddBody(int bodyIndex)
Add a body to the constrained set.
const std::set< ConstraintType > & GetConstraints() const
Get the types of constraints applied to the set.
~Constraint()=default
Destructor.
@ kShiftZ
mean shift in Z is zero
@ kShiftX
mean shift in X is zero
@ kShiftY
mean shift in Y is zero
void AddConstraint(ConstraintType type)
Add a constraint type to the set.
Constraint()=default
Default constructor.
const std::set< int > & GetBodies() const
Get the indices of bodies in the constrained set.
ClassDefNV(Constraint, 0)
std::set< ConstraintType > fConstraints
types of constraints applied to the set
void Reset()
Clear the set of bodies and constraints.