Blender
V3.3
|
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 () |
obsolete methods More... | |
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 More... | |
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) More... | |
Variables | |
btPoint2PointConstraint | __pad0__ |
point to point constraint between two rigidbodies each with a pivotpoint that descibes the 'ballsocket' location in local space More... | |
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' More... | |
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.
Referenced by debugDrawConstraint(), and RB_constraint_new_point().
btPoint2PointConstraint::btPoint2PointConstraint | ( | btRigidBody & | rbA, |
const btVector3 & | pivotInA | ||
) |
Definition at line 25 of file btPoint2PointConstraint.cpp.
|
virtual |
obsolete methods
performs Jacobian calculation, and also calculates angle differences and axis
performs Jacobian calculation, and also calculates angle differences and axis
obsolete methods
we need it for both methods
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 |
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, btVector3, btConstraintInfo2::cfm, btConstraintInfo2::erp, btConstraintInfo2::fps, getPivotInA(), getPivotInB(), m_cfm, btConstraintInfo2::m_constraintError, btConstraintSetting::m_damping, btConstraintInfo2::m_damping, m_erp, m_flags, btConstraintSetting::m_impulseClamp, 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
const btVector3& getPivotInA | ( | ) | const |
Definition at line 101 of file btPoint2PointConstraint.h.
References m_pivotInA.
Referenced by getInfo2NonVirtual().
const btVector3& getPivotInB | ( | ) | const |
Definition at line 106 of file btPoint2PointConstraint.h.
References m_pivotInB.
Referenced by getInfo2NonVirtual().
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
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.
Definition at line 91 of file btPoint2PointConstraint.h.
References m_pivotInA.
Definition at line 96 of file btPoint2PointConstraint.h.
References m_pivotInB.
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(), btSoftBody::LJoint::Solve(), and btSoftBody::AJoint::Solve().
btScalar m_erp |
Definition at line 64 of file btPoint2PointConstraint.h.
Referenced by getInfo2NonVirtual(), btSoftBody::LJoint::Prepare(), btSoftBody::AJoint::Prepare(), btSoftBody::CJoint::Prepare(), and btSoftBody::serialize().
int m_flags |
Definition at line 63 of file btPoint2PointConstraint.h.
Referenced by getFlags().
btVector3 m_pivotInA |
Definition at line 60 of file btPoint2PointConstraint.h.
Referenced by getPivotInA(), and setPivotA().
btVector3 m_pivotInB |
Definition at line 61 of file btPoint2PointConstraint.h.
Referenced by getPivotInB(), and setPivotB().
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.