Bullet Collision Detection & Physics Library
Public Member Functions | Protected Attributes | List of all members
btMultiBodySliderConstraint Class Reference

This file was written by Erwin Coumans. More...

#include <btMultiBodySliderConstraint.h>

Inheritance diagram for btMultiBodySliderConstraint:
Inheritance graph
[legend]
Collaboration diagram for btMultiBodySliderConstraint:
Collaboration graph
[legend]

Public Member Functions

 btMultiBodySliderConstraint (btMultiBody *body, int link, btRigidBody *bodyB, const btVector3 &pivotInA, const btVector3 &pivotInB, const btMatrix3x3 &frameInA, const btMatrix3x3 &frameInB, const btVector3 &jointAxis)
 
 btMultiBodySliderConstraint (btMultiBody *bodyA, int linkA, btMultiBody *bodyB, int linkB, const btVector3 &pivotInA, const btVector3 &pivotInB, const btMatrix3x3 &frameInA, const btMatrix3x3 &frameInB, const btVector3 &jointAxis)
 
virtual ~btMultiBodySliderConstraint ()
 
virtual void finalizeMultiDof ()
 
virtual int getIslandIdA () const
 
virtual int getIslandIdB () const
 
virtual void createConstraintRows (btMultiBodyConstraintArray &constraintRows, btMultiBodyJacobianData &data, const btContactSolverInfo &infoGlobal)
 
const btVector3getPivotInA () const
 
void setPivotInA (const btVector3 &pivotInA)
 
const btVector3getPivotInB () const
 
virtual void setPivotInB (const btVector3 &pivotInB)
 
const btMatrix3x3getFrameInA () const
 
void setFrameInA (const btMatrix3x3 &frameInA)
 
const btMatrix3x3getFrameInB () const
 
virtual void setFrameInB (const btMatrix3x3 &frameInB)
 
const btVector3getJointAxis () const
 
void setJointAxis (const btVector3 &jointAxis)
 
virtual void debugDraw (class btIDebugDraw *drawer)
 
- Public Member Functions inherited from btMultiBodyConstraint
 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btMultiBodyConstraint (btMultiBody *bodyA, btMultiBody *bodyB, int linkA, int linkB, int numRows, bool isUnilateral, int type)
 
virtual ~btMultiBodyConstraint ()
 
void updateJacobianSizes ()
 
void allocateJacobiansMultiDof ()
 
int getConstraintType () const
 
virtual void setFrameInB (const btMatrix3x3 &frameInB)
 
virtual void setPivotInB (const btVector3 &pivotInB)
 
virtual void finalizeMultiDof ()=0
 
virtual int getIslandIdA () const =0
 
virtual int getIslandIdB () const =0
 
virtual void createConstraintRows (btMultiBodyConstraintArray &constraintRows, btMultiBodyJacobianData &data, const btContactSolverInfo &infoGlobal)=0
 
int getNumRows () const
 
btMultiBodygetMultiBodyA ()
 
btMultiBodygetMultiBodyB ()
 
int getLinkA () const
 
int getLinkB () const
 
void internalSetAppliedImpulse (int dof, btScalar appliedImpulse)
 
btScalar getAppliedImpulse (int dof)
 
btScalar getPosition (int row) const
 
void setPosition (int row, btScalar pos)
 
bool isUnilateral () const
 
btScalarjacobianA (int row)
 
const btScalarjacobianA (int row) const
 
btScalarjacobianB (int row)
 
const btScalarjacobianB (int row) const
 
btScalar getMaxAppliedImpulse () const
 
void setMaxAppliedImpulse (btScalar maxImp)
 
virtual void debugDraw (class btIDebugDraw *drawer)=0
 
virtual void setGearRatio (btScalar ratio)
 
virtual void setGearAuxLink (int gearAuxLink)
 
virtual void setRelativePositionTarget (btScalar relPosTarget)
 
virtual void setErp (btScalar erp)
 

Protected Attributes

btRigidBodym_rigidBodyA
 
btRigidBodym_rigidBodyB
 
btVector3 m_pivotInA
 
btVector3 m_pivotInB
 
btMatrix3x3 m_frameInA
 
btMatrix3x3 m_frameInB
 
btVector3 m_jointAxis
 
- Protected Attributes inherited from btMultiBodyConstraint
btMultiBodym_bodyA
 
btMultiBodym_bodyB
 
int m_linkA
 
int m_linkB
 
int m_type
 
int m_numRows
 
int m_jacSizeA
 
int m_jacSizeBoth
 
int m_posOffset
 
bool m_isUnilateral
 
int m_numDofsFinalized
 
btScalar m_maxAppliedImpulse
 
btAlignedObjectArray< btScalarm_data
 

Additional Inherited Members

- Protected Member Functions inherited from btMultiBodyConstraint
void applyDeltaVee (btMultiBodyJacobianData &data, btScalar *delta_vee, btScalar impulse, int velocityIndex, int ndof)
 
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)
 

Detailed Description

This file was written by Erwin Coumans.

Definition at line 23 of file btMultiBodySliderConstraint.h.

Constructor & Destructor Documentation

◆ btMultiBodySliderConstraint() [1/2]

btMultiBodySliderConstraint::btMultiBodySliderConstraint ( btMultiBody body,
int  link,
btRigidBody bodyB,
const btVector3 pivotInA,
const btVector3 pivotInB,
const btMatrix3x3 frameInA,
const btMatrix3x3 frameInB,
const btVector3 jointAxis 
)

Definition at line 27 of file btMultiBodySliderConstraint.cpp.

◆ btMultiBodySliderConstraint() [2/2]

btMultiBodySliderConstraint::btMultiBodySliderConstraint ( btMultiBody bodyA,
int  linkA,
btMultiBody bodyB,
int  linkB,
const btVector3 pivotInA,
const btVector3 pivotInB,
const btMatrix3x3 frameInA,
const btMatrix3x3 frameInB,
const btVector3 jointAxis 
)

Definition at line 40 of file btMultiBodySliderConstraint.cpp.

◆ ~btMultiBodySliderConstraint()

btMultiBodySliderConstraint::~btMultiBodySliderConstraint ( )
virtual

Definition at line 59 of file btMultiBodySliderConstraint.cpp.

Member Function Documentation

◆ createConstraintRows()

void btMultiBodySliderConstraint::createConstraintRows ( btMultiBodyConstraintArray constraintRows,
btMultiBodyJacobianData data,
const btContactSolverInfo infoGlobal 
)
virtual

Implements btMultiBodyConstraint.

Definition at line 105 of file btMultiBodySliderConstraint.cpp.

◆ debugDraw()

void btMultiBodySliderConstraint::debugDraw ( class btIDebugDraw drawer)
virtual

Implements btMultiBodyConstraint.

Definition at line 204 of file btMultiBodySliderConstraint.cpp.

◆ finalizeMultiDof()

void btMultiBodySliderConstraint::finalizeMultiDof ( )
virtual

Implements btMultiBodyConstraint.

Definition at line 53 of file btMultiBodySliderConstraint.cpp.

◆ getFrameInA()

const btMatrix3x3 & btMultiBodySliderConstraint::getFrameInA ( ) const
inline

Definition at line 69 of file btMultiBodySliderConstraint.h.

◆ getFrameInB()

const btMatrix3x3 & btMultiBodySliderConstraint::getFrameInB ( ) const
inline

Definition at line 79 of file btMultiBodySliderConstraint.h.

◆ getIslandIdA()

int btMultiBodySliderConstraint::getIslandIdA ( ) const
virtual

Implements btMultiBodyConstraint.

Definition at line 63 of file btMultiBodySliderConstraint.cpp.

◆ getIslandIdB()

int btMultiBodySliderConstraint::getIslandIdB ( ) const
virtual

Implements btMultiBodyConstraint.

Definition at line 85 of file btMultiBodySliderConstraint.cpp.

◆ getJointAxis()

const btVector3 & btMultiBodySliderConstraint::getJointAxis ( ) const
inline

Definition at line 89 of file btMultiBodySliderConstraint.h.

◆ getPivotInA()

const btVector3 & btMultiBodySliderConstraint::getPivotInA ( ) const
inline

Definition at line 49 of file btMultiBodySliderConstraint.h.

◆ getPivotInB()

const btVector3 & btMultiBodySliderConstraint::getPivotInB ( ) const
inline

Definition at line 59 of file btMultiBodySliderConstraint.h.

◆ setFrameInA()

void btMultiBodySliderConstraint::setFrameInA ( const btMatrix3x3 frameInA)
inline

Definition at line 74 of file btMultiBodySliderConstraint.h.

◆ setFrameInB()

virtual void btMultiBodySliderConstraint::setFrameInB ( const btMatrix3x3 frameInB)
inlinevirtual

Reimplemented from btMultiBodyConstraint.

Definition at line 84 of file btMultiBodySliderConstraint.h.

◆ setJointAxis()

void btMultiBodySliderConstraint::setJointAxis ( const btVector3 jointAxis)
inline

Definition at line 94 of file btMultiBodySliderConstraint.h.

◆ setPivotInA()

void btMultiBodySliderConstraint::setPivotInA ( const btVector3 pivotInA)
inline

Definition at line 54 of file btMultiBodySliderConstraint.h.

◆ setPivotInB()

virtual void btMultiBodySliderConstraint::setPivotInB ( const btVector3 pivotInB)
inlinevirtual

Reimplemented from btMultiBodyConstraint.

Definition at line 64 of file btMultiBodySliderConstraint.h.

Member Data Documentation

◆ m_frameInA

btMatrix3x3 btMultiBodySliderConstraint::m_frameInA
protected

Definition at line 30 of file btMultiBodySliderConstraint.h.

◆ m_frameInB

btMatrix3x3 btMultiBodySliderConstraint::m_frameInB
protected

Definition at line 31 of file btMultiBodySliderConstraint.h.

◆ m_jointAxis

btVector3 btMultiBodySliderConstraint::m_jointAxis
protected

Definition at line 32 of file btMultiBodySliderConstraint.h.

◆ m_pivotInA

btVector3 btMultiBodySliderConstraint::m_pivotInA
protected

Definition at line 28 of file btMultiBodySliderConstraint.h.

◆ m_pivotInB

btVector3 btMultiBodySliderConstraint::m_pivotInB
protected

Definition at line 29 of file btMultiBodySliderConstraint.h.

◆ m_rigidBodyA

btRigidBody* btMultiBodySliderConstraint::m_rigidBodyA
protected

Definition at line 26 of file btMultiBodySliderConstraint.h.

◆ m_rigidBodyB

btRigidBody* btMultiBodySliderConstraint::m_rigidBodyB
protected

Definition at line 27 of file btMultiBodySliderConstraint.h.


The documentation for this class was generated from the following files: