|
Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_MULTIBODY_CONSTRAINT_H
17 #define BT_MULTIBODY_CONSTRAINT_H
80 bool angConstraint =
false,
92 void updateJacobianSizes();
93 void allocateJacobiansMultiDof();
99 virtual void finalizeMultiDof()=0;
101 virtual int getIslandIdA()
const =0;
102 virtual int getIslandIdB()
const =0;
126 m_data[dof] = appliedImpulse;
141 return m_data[m_posOffset + row];
146 m_data[m_posOffset + row] = pos;
152 return m_isUnilateral;
160 return &m_data[m_numRows + row * m_jacSizeBoth];
164 return &m_data[m_numRows + (row * m_jacSizeBoth)];
168 return &m_data[m_numRows + (row * m_jacSizeBoth) + m_jacSizeA];
172 return &m_data[m_numRows + (row * m_jacSizeBoth) + m_jacSizeA];
177 return m_maxAppliedImpulse;
181 m_maxAppliedImpulse = maxImp;
194 #endif //BT_MULTIBODY_CONSTRAINT_H
btAlignedObjectArray< btVector3 > scratch_v
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btScalar getMaxAppliedImpulse() const
btAlignedObjectArray< btScalar > m_jacobians
void setMaxAppliedImpulse(btScalar maxImp)
const btScalar * jacobianA(int row) const
void internalSetAppliedImpulse(int dof, btScalar appliedImpulse)
btMultiBody * getMultiBodyB()
void setPosition(int row, btScalar pos)
virtual void setFrameInB(const btMatrix3x3 &frameInB)
1D constraint along a normal axis between bodyA and bodyB. It can be combined to solve contact and fr...
virtual void setPivotInB(const btVector3 &pivotInB)
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
virtual void setRelativePositionTarget(btScalar relPosTarget)
bool isUnilateral() const
btScalar m_maxAppliedImpulse
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
btAlignedObjectArray< btScalar > scratch_r
btScalar getPosition(int row) const
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btVector3 can be used to represent 3D points and vectors.
virtual void setGearRatio(btScalar ratio)
const btScalar * jacobianB(int row) const
#define ATTRIBUTE_ALIGNED16(a)
btScalar * jacobianA(int row)
btAlignedObjectArray< btScalar > m_deltaVelocities
btScalar getAppliedImpulse(int dof)
btAlignedObjectArray< btSolverBody > * m_solverBodyPool
btAlignedObjectArray< btScalar > m_data
virtual void setErp(btScalar erp)
btMultiBody * getMultiBodyA()
btScalar * jacobianB(int row)
btAlignedObjectArray< btMatrix3x3 > scratch_m
btAlignedObjectArray< btScalar > m_deltaVelocitiesUnitImpulse
virtual void setGearAuxLink(int gearAuxLink)