16#ifndef BT_MULTIBODY_CONSTRAINT_H
17#define BT_MULTIBODY_CONSTRAINT_H
94 bool angConstraint =
false,
105 void updateJacobianSizes();
106 void allocateJacobiansMultiDof();
151 m_data[dof] = appliedImpulse;
165 return m_data[m_posOffset + row];
170 m_data[m_posOffset + row] = pos;
175 return m_isUnilateral;
183 return &m_data[m_numRows + row * m_jacSizeBoth];
187 return &m_data[m_numRows + (row * m_jacSizeBoth)];
191 return &m_data[m_numRows + (row * m_jacSizeBoth) + m_jacSizeA];
195 return &m_data[m_numRows + (row * m_jacSizeBoth) + m_jacSizeA];
200 return m_maxAppliedImpulse;
204 m_maxAppliedImpulse = maxImp;
btTypedMultiBodyConstraintType
@ MAX_MULTIBODY_CONSTRAINT_TYPE
@ MULTIBODY_CONSTRAINT_LIMIT
@ MULTIBODY_CONSTRAINT_SLIDER
@ MULTIBODY_CONSTRAINT_FIXED
@ MULTIBODY_CONSTRAINT_POINT_TO_POINT
@ MULTIBODY_CONSTRAINT_SPHERICAL_LIMIT
@ MULTIBODY_CONSTRAINT_GEAR
@ MULTIBODY_CONSTRAINT_1DOF_JOINT_MOTOR
@ MULTIBODY_CONSTRAINT_SPHERICAL_MOTOR
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
virtual void setGearRatio(btScalar ratio)
virtual void setRelativePositionTarget(btScalar relPosTarget)
btScalar getPosition(int row) const
const btScalar * jacobianA(int row) const
virtual int getIslandIdA() const =0
btAlignedObjectArray< btScalar > m_data
btMultiBody * getMultiBodyB()
btScalar * jacobianA(int row)
void setPosition(int row, btScalar pos)
virtual void debugDraw(class btIDebugDraw *drawer)=0
int getConstraintType() const
btScalar m_maxAppliedImpulse
btMultiBody * getMultiBodyA()
btScalar * jacobianB(int row)
virtual void createConstraintRows(btMultiBodyConstraintArray &constraintRows, btMultiBodyJacobianData &data, const btContactSolverInfo &infoGlobal)=0
virtual void setPivotInB(const btVector3 &pivotInB)
void setMaxAppliedImpulse(btScalar maxImp)
btScalar getAppliedImpulse(int dof)
virtual int getIslandIdB() const =0
bool isUnilateral() const
virtual void setErp(btScalar erp)
btScalar getMaxAppliedImpulse() const
BT_DECLARE_ALIGNED_ALLOCATOR()
const btScalar * jacobianB(int row) const
void internalSetAppliedImpulse(int dof, btScalar appliedImpulse)
virtual void setGearAuxLink(int gearAuxLink)
virtual void setFrameInB(const btMatrix3x3 &frameInB)
virtual void finalizeMultiDof()=0
btVector3 can be used to represent 3D points and vectors.
btAlignedObjectArray< btScalar > m_deltaVelocitiesUnitImpulse
btAlignedObjectArray< btScalar > m_deltaVelocities
btAlignedObjectArray< btScalar > m_jacobians
btAlignedObjectArray< btSolverBody > * m_solverBodyPool
btAlignedObjectArray< btScalar > scratch_r
btAlignedObjectArray< btMatrix3x3 > scratch_m
btAlignedObjectArray< btVector3 > scratch_v
1D constraint along a normal axis between bodyA and bodyB. It can be combined to solve contact and fr...