18 #ifndef BT_GEAR_CONSTRAINT_H
19 #define BT_GEAR_CONSTRAINT_H
24 #ifdef BT_USE_DOUBLE_PRECISION
25 #define btGearConstraintData btGearConstraintDoubleData
26 #define btGearConstraintDataName "btGearConstraintDoubleData"
28 #define btGearConstraintData btGearConstraintFloatData
29 #define btGearConstraintDataName "btGearConstraintFloatData"
30 #endif //BT_USE_DOUBLE_PRECISION
152 #endif //BT_GEAR_CONSTRAINT_H
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...
btTypedConstraintDoubleData m_typeConstraintData
const btVector3 & getAxisB() const
The btGeatConstraint will couple the angular velocity for two bodies around given local axis and rati...
void setRatio(btScalar ratio)
virtual void getInfo1(btConstraintInfo1 *info)
internal method used by the constraint solver, don't use them directly
#define SIMD_FORCE_INLINE
#define btGearConstraintDataName
btVector3DoubleData m_axisInB
virtual btScalar getParam(int num, int axis=-1) const
return the local value of parameter
btVector3FloatData m_axisInB
void setAxisA(btVector3 &axisA)
virtual void getInfo2(btConstraintInfo2 *info)
internal method used by the constraint solver, don't use them directly
void setAxisB(btVector3 &axisB)
#define btGearConstraintData
virtual ~btGearConstraint()
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 ...
void serialize(struct btVector3Data &dataOut) const
The btRigidBody is the main class for rigid body objects.
btScalar getRatio() const
btTypedConstraintFloatData m_typeConstraintData
btVector3DoubleData m_axisInA
btVector3FloatData m_axisInA
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
btVector3 can be used to represent 3D points and vectors.
const btVector3 & getAxisA() const
TypedConstraint is the baseclass for Bullet constraints and vehicles.
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
virtual int calculateSerializeBufferSize() const
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.
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 ...
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...