Blender V5.0
btPoint2PointConstraint.h File Reference

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
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 btVector3getPivotInA () const
const btVector3getPivotInB () 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

Macro Definition Documentation

◆ btPoint2PointConstraintData2

#define btPoint2PointConstraintData2   btPoint2PointConstraintFloatData

Definition at line 29 of file btPoint2PointConstraint.h.

◆ btPoint2PointConstraintDataName

#define btPoint2PointConstraintDataName   "btPoint2PointConstraintFloatData"

Definition at line 30 of file btPoint2PointConstraint.h.

Enumeration Type Documentation

◆ btPoint2PointFlags

Enumerator
BT_P2P_FLAGS_ERP 
BT_P2P_FLAGS_CFM 

Definition at line 45 of file btPoint2PointConstraint.h.

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btPoint2PointConstraint() [1/2]

btPoint2PointConstraint::btPoint2PointConstraint ( btRigidBody & rbA,
btRigidBody & rbB,
const btVector3 & pivotInA,
const btVector3 & pivotInB )

◆ btPoint2PointConstraint() [2/2]

btPoint2PointConstraint::btPoint2PointConstraint ( btRigidBody & rbA,
const btVector3 & pivotInA )

◆ buildJacobian()

virtual void buildJacobian ( )
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

Definition at line 322 of file btGeneric6DofSpring2Constraint.h.

◆ calculateSerializeBufferSize()

virtual int calculateSerializeBufferSize ( ) const
virtual

◆ getFlags()

virtual int getFlags ( ) const
virtual

Definition at line 117 of file btPoint2PointConstraint.h.

References m_flags.

◆ getInfo1()

virtual void getInfo1 ( btConstraintInfo1 * info)
virtual

◆ getInfo1NonVirtual()

void getInfo1NonVirtual ( btConstraintInfo1 * info)

◆ getInfo2()

virtual void getInfo2 ( btConstraintInfo2 * info)
virtual

References btTransform.

◆ getInfo2NonVirtual()

◆ getParam()

virtual btScalar getParam ( int num,
int axis = -1 ) const
virtual

return the local value of parameter

References num.

◆ getPivotInA()

const btVector3 & getPivotInA ( ) const

Definition at line 101 of file btPoint2PointConstraint.h.

References btVector3, and m_pivotInA.

Referenced by getInfo2NonVirtual().

◆ getPivotInB()

const btVector3 & getPivotInB ( ) const

Definition at line 106 of file btPoint2PointConstraint.h.

References btVector3, and m_pivotInB.

Referenced by getInfo2NonVirtual().

◆ serialize()

virtual const char * serialize ( void * dataBuffer,
btSerializer * serializer ) const
virtual

fills the dataBuffer and returns the struct name (and 0 on failure)

◆ setParam()

virtual void setParam ( int num,
btScalar value,
int axis = -1 )
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.

◆ setPivotA()

void setPivotA ( const btVector3 & pivotA)

Definition at line 91 of file btPoint2PointConstraint.h.

References btVector3, and m_pivotInA.

◆ setPivotB()

void setPivotB ( const btVector3 & pivotB)

Definition at line 96 of file btPoint2PointConstraint.h.

References btVector3, and m_pivotInB.

◆ updateRHS()

void updateRHS ( btScalar timeStep)

Variable Documentation

◆ __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.

◆ m_cfm

btScalar m_cfm

Definition at line 65 of file btPoint2PointConstraint.h.

Referenced by getInfo2NonVirtual().

◆ m_erp

btScalar m_erp

Definition at line 64 of file btPoint2PointConstraint.h.

Referenced by getInfo2NonVirtual(), and btSoftBody::serialize().

◆ m_flags

int m_flags

Definition at line 63 of file btPoint2PointConstraint.h.

◆ m_pivotInA

◆ m_pivotInB

◆ m_setting

Definition at line 73 of file btPoint2PointConstraint.h.

Referenced by getInfo2NonVirtual().

◆ m_useSolveConstraintObsolete

bool m_useSolveConstraintObsolete

for backwards compatibility during the transition to 'getInfo/getInfo2'

Definition at line 71 of file btPoint2PointConstraint.h.