Class JointFrictionR

Defined in Program listing for file mechanics/src/joints/JointFrictionR.hpp

class JointFrictionR : public NewtonEulerR

This class implements a friction on a DoF for any NewtonEulerJointR.

Public Functions

JointFrictionR(SP::NewtonEulerJointR joint, unsigned int axis)

Initialize a joint friction for a common case: a single axis with a single friction, either positive or negative.

For use with NewtonImpactNSL.

JointFrictionR(SP::NewtonEulerJointR joint, SP::UnsignedIntVector axes = SP::UnsignedIntVector())

Initialize a multidimensional joint friction, e.g.

the cone friction on a ball joint. For use with NewtonImpactFrictionNSL size 2 or 3.

virtual ~JointFrictionR()