146 fillMultiBodyConstraint(constraintRow, data,
jacobianA(row),
jacobianB(row), dummy, dummy, dummy, dummy, posError, infoGlobal, -
m_maxAppliedImpulse,
m_maxAppliedImpulse,
false, 1,
false, desiredRelativeVelocity);
@ MULTIBODY_CONSTRAINT_GEAR
btScalar * jacobianA(int row)
btScalar m_maxAppliedImpulse
btScalar * jacobianB(int row)
void allocateJacobiansMultiDof()
btScalar fillMultiBodyConstraint(btMultiBodySolverConstraint &solverConstraint, btMultiBodyJacobianData &data, btScalar *jacOrgA, btScalar *jacOrgB, const btVector3 &constraintNormalAng, const btVector3 &constraintNormalLin, const btVector3 &posAworld, const btVector3 &posBworld, btScalar posError, const btContactSolverInfo &infoGlobal, btScalar lowerLimit, btScalar upperLimit, bool angConstraint=false, btScalar relaxation=1.f, bool isFriction=false, btScalar desiredVelocity=0, btScalar cfmSlip=0, btScalar damping=1.0)
virtual ~btMultiBodyGearConstraint()
virtual void createConstraintRows(btMultiBodyConstraintArray &constraintRows, btMultiBodyJacobianData &data, const btContactSolverInfo &infoGlobal)
btScalar m_relativePositionTarget
btMultiBodyGearConstraint(btMultiBody *bodyA, int linkA, btMultiBody *bodyB, int linkB, const btVector3 &pivotInA, const btVector3 &pivotInB, const btMatrix3x3 &frameInA, const btMatrix3x3 &frameInB)
This file was written by Erwin Coumans.
virtual void finalizeMultiDof()
virtual int getIslandIdA() const
virtual int getIslandIdB() const
btScalar * getJointPosMultiDof(int i)
const btMultibodyLink & getLink(int index) const
const btMultiBodyLinkCollider * getBaseCollider() const
btScalar * getJointVelMultiDof(int i)
1D constraint along a normal axis between bodyA and bodyB. It can be combined to solve contact and fr...
btMultiBodyConstraint * m_orgConstraint
btVector3 m_relpos1CrossNormal
btVector3 m_contactNormal2
btVector3 m_contactNormal1
btVector3 m_relpos2CrossNormal
class btMultiBodyLinkCollider * m_collider
eFeatherstoneJointType m_jointType
btTransform m_cachedWorldTransform
btSpatialMotionVector m_axes[6]