|
Blender V4.5
|
Go to the source code of this file.
Classes | |
| struct | btConstraintSetting |
| struct | btPoint2PointConstraintFloatData |
| do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More... | |
| struct | btPoint2PointConstraintDoubleData2 |
| do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More... | |
| struct | btPoint2PointConstraintDoubleData |
Macros | |
| #define | btPoint2PointConstraintData2 btPoint2PointConstraintFloatData |
| #define | btPoint2PointConstraintDataName "btPoint2PointConstraintFloatData" |
Enumerations | |
| enum | btPoint2PointFlags { BT_P2P_FLAGS_ERP = 1 , BT_P2P_FLAGS_CFM = 2 } |
Functions | |
| BT_DECLARE_ALIGNED_ALLOCATOR () | |
| btPoint2PointConstraint (btRigidBody &rbA, btRigidBody &rbB, const btVector3 &pivotInA, const btVector3 &pivotInB) | |
| btPoint2PointConstraint (btRigidBody &rbA, const btVector3 &pivotInA) | |
| virtual void | buildJacobian () |
| virtual void | getInfo1 (btConstraintInfo1 *info) |
| void | getInfo1NonVirtual (btConstraintInfo1 *info) |
| virtual void | getInfo2 (btConstraintInfo2 *info) |
| void | getInfo2NonVirtual (btConstraintInfo2 *info, const btTransform &body0_trans, const btTransform &body1_trans) |
| void | updateRHS (btScalar timeStep) |
| void | setPivotA (const btVector3 &pivotA) |
| void | setPivotB (const btVector3 &pivotB) |
| const btVector3 & | getPivotInA () const |
| const btVector3 & | getPivotInB () const |
| virtual void | setParam (int num, btScalar value, int axis=-1) |
| virtual btScalar | getParam (int num, int axis=-1) const |
| return the local value of parameter | |
| virtual int | getFlags () const |
| virtual int | calculateSerializeBufferSize () const |
| virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
| fills the dataBuffer and returns the struct name (and 0 on failure) | |
Variables | |
| btPoint2PointConstraint | __pad0__ |
| point to point constraint between two rigidbodies each with a pivotpoint that descibes the 'ballsocket' location in local space | |
| btVector3 | m_pivotInA |
| btVector3 | m_pivotInB |
| int | m_flags |
| btScalar | m_erp |
| btScalar | m_cfm |
| bool | m_useSolveConstraintObsolete |
| for backwards compatibility during the transition to 'getInfo/getInfo2' | |
| btConstraintSetting | m_setting |
| #define btPoint2PointConstraintData2 btPoint2PointConstraintFloatData |
Definition at line 29 of file btPoint2PointConstraint.h.
| #define btPoint2PointConstraintDataName "btPoint2PointConstraintFloatData" |
Definition at line 30 of file btPoint2PointConstraint.h.
| enum btPoint2PointFlags |
| Enumerator | |
|---|---|
| BT_P2P_FLAGS_ERP | |
| BT_P2P_FLAGS_CFM | |
Definition at line 45 of file btPoint2PointConstraint.h.
| BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
| btPoint2PointConstraint::btPoint2PointConstraint | ( | btRigidBody & | rbA, |
| btRigidBody & | rbB, | ||
| const btVector3 & | pivotInA, | ||
| const btVector3 & | pivotInB ) |
Definition at line 20 of file btPoint2PointConstraint.cpp.
References btTypedConstraint(), btVector3, false, m_flags, m_pivotInA, m_pivotInB, m_useSolveConstraintObsolete, POINT2POINT_CONSTRAINT_TYPE, and rbB.
Referenced by debugDrawConstraint(), and RB_constraint_new_point().
| btPoint2PointConstraint::btPoint2PointConstraint | ( | btRigidBody & | rbA, |
| const btVector3 & | pivotInA ) |
Definition at line 25 of file btPoint2PointConstraint.cpp.
References btTypedConstraint(), btVector3, false, m_flags, m_pivotInA, m_pivotInB, m_useSolveConstraintObsolete, and POINT2POINT_CONSTRAINT_TYPE.
|
virtual |
we need it for both methods
Definition at line 322 of file btGeneric6DofSpring2Constraint.h.
|
virtual |
|
virtual |
Definition at line 117 of file btPoint2PointConstraint.h.
References m_flags.
|
virtual |
| void getInfo1NonVirtual | ( | btConstraintInfo1 * | info | ) |
|
virtual |
References btTransform.
| void btPoint2PointConstraint::getInfo2NonVirtual | ( | btConstraintInfo2 * | info, |
| const btTransform & | body0_trans, | ||
| const btTransform & | body1_trans ) |
Definition at line 80 of file btPoint2PointConstraint.cpp.
References BT_P2P_FLAGS_CFM, BT_P2P_FLAGS_ERP, btAssert, btTransform, btVector3, btConstraintInfo2::cfm, btConstraintInfo2::erp, btConstraintInfo2::fps, getPivotInA(), getPivotInB(), m_cfm, btConstraintInfo2::m_constraintError, btConstraintInfo2::m_damping, m_erp, m_flags, btConstraintInfo2::m_J1angularAxis, btConstraintInfo2::m_J1linearAxis, btConstraintInfo2::m_J2angularAxis, btConstraintInfo2::m_J2linearAxis, btConstraintInfo2::m_lowerLimit, m_setting, btConstraintInfo2::m_upperLimit, m_useSolveConstraintObsolete, and btConstraintInfo2::rowskip.
|
virtual |
return the local value of parameter
References num.
| const btVector3 & getPivotInA | ( | ) | const |
Definition at line 101 of file btPoint2PointConstraint.h.
References btVector3, and m_pivotInA.
Referenced by getInfo2NonVirtual().
| const btVector3 & getPivotInB | ( | ) | const |
Definition at line 106 of file btPoint2PointConstraint.h.
References btVector3, and m_pivotInB.
Referenced by getInfo2NonVirtual().
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
|
virtual |
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5). If no axis is provided, it uses the default axis for this constraint.
References num.
| void setPivotA | ( | const btVector3 & | pivotA | ) |
Definition at line 91 of file btPoint2PointConstraint.h.
References btVector3, and m_pivotInA.
| void setPivotB | ( | const btVector3 & | pivotB | ) |
Definition at line 96 of file btPoint2PointConstraint.h.
References btVector3, and m_pivotInB.
| void updateRHS | ( | btScalar | timeStep | ) |
| btPoint2PointConstraint __pad0__ |
point to point constraint between two rigidbodies each with a pivotpoint that descibes the 'ballsocket' location in local space
Definition at line 53 of file btPoint2PointConstraint.h.
| btScalar m_cfm |
Definition at line 65 of file btPoint2PointConstraint.h.
Referenced by getInfo2NonVirtual().
| btScalar m_erp |
Definition at line 64 of file btPoint2PointConstraint.h.
Referenced by getInfo2NonVirtual(), and btSoftBody::serialize().
| int m_flags |
Definition at line 63 of file btPoint2PointConstraint.h.
| btVector3 m_pivotInA |
Definition at line 60 of file btPoint2PointConstraint.h.
Referenced by btMultiBodyPoint2Point(), btMultiBodyPoint2Point(), btPoint2PointConstraint(), btPoint2PointConstraint(), getPivotInA(), and setPivotA().
| btVector3 m_pivotInB |
Definition at line 61 of file btPoint2PointConstraint.h.
Referenced by btMultiBodyPoint2Point(), btMultiBodyPoint2Point(), btPoint2PointConstraint(), btPoint2PointConstraint(), getPivotInB(), setPivotB(), and setPivotInB().
| btConstraintSetting m_setting |
Definition at line 73 of file btPoint2PointConstraint.h.
Referenced by getInfo2NonVirtual().
| bool m_useSolveConstraintObsolete |
for backwards compatibility during the transition to 'getInfo/getInfo2'
Definition at line 71 of file btPoint2PointConstraint.h.