Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_GEAR_CONSTRAINT_H
17 #define BT_GEAR_CONSTRAINT_H
21 #ifdef BT_USE_DOUBLE_PRECISION
22 #define btGearConstraintData btGearConstraintDoubleData
23 #define btGearConstraintDataName "btGearConstraintDoubleData"
25 #define btGearConstraintData btGearConstraintFloatData
26 #define btGearConstraintDataName "btGearConstraintFloatData"
27 #endif //BT_USE_DOUBLE_PRECISION
136 #ifndef BT_USE_DOUBLE_PRECISION
137 gear->m_padding[0] = 0;
138 gear->m_padding[1] = 0;
139 gear->m_padding[2] = 0;
140 gear->m_padding[3] = 0;
146 #endif //BT_GEAR_CONSTRAINT_H
TypedConstraint is the baseclass for Bullet constraints and vehicles.
virtual void setParam(int num, btScalar value, int axis=-1)
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0...
void serialize(struct btVector3Data &dataOut) const
The btRigidBody is the main class for rigid body objects.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btTypedConstraintDoubleData m_typeConstraintData
void setRatio(btScalar ratio)
void setAxisA(btVector3 &axisA)
virtual void getInfo2(btConstraintInfo2 *info)
internal method used by the constraint solver, don't use them directly
btTypedConstraintFloatData m_typeConstraintData
btGearConstraint(btRigidBody &rbA, btRigidBody &rbB, const btVector3 &axisInA, const btVector3 &axisInB, btScalar ratio=1.f)
Implemented by Erwin Coumans. The idea for the constraint comes from Dimitris Papavasiliou.
const btVector3 & getAxisA() const
btVector3FloatData m_axisInA
void setAxisB(btVector3 &axisB)
virtual ~btGearConstraint()
btVector3FloatData m_axisInB
btScalar getRatio() const
The btGeatConstraint will couple the angular velocity for two bodies around given local axis and rati...
const btVector3 & getAxisB() const
btVector3 can be used to represent 3D points and vectors.
virtual void getInfo1(btConstraintInfo1 *info)
internal method used by the constraint solver, don't use them directly
virtual btScalar getParam(int num, int axis=-1) const
return the local value of parameter
#define btGearConstraintDataName
virtual int calculateSerializeBufferSize() const
#define SIMD_FORCE_INLINE
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btVector3DoubleData m_axisInB
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
btVector3DoubleData m_axisInA
#define btGearConstraintData
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)