16 #ifndef BT_GENERIC_6DOF_SPRING_CONSTRAINT_H
17 #define BT_GENERIC_6DOF_SPRING_CONSTRAINT_H
24 #ifdef BT_USE_DOUBLE_PRECISION
25 #define btGeneric6DofSpringConstraintData2 btGeneric6DofSpringConstraintDoubleData2
26 #define btGeneric6DofSpringConstraintDataName "btGeneric6DofSpringConstraintDoubleData2"
28 #define btGeneric6DofSpringConstraintData2 btGeneric6DofSpringConstraintData
29 #define btGeneric6DofSpringConstraintDataName "btGeneric6DofSpringConstraintData"
30 #endif //BT_USE_DOUBLE_PRECISION
47 bool m_springEnabled[6];
59 void enableSpring(
int index,
bool onOff);
60 void setStiffness(
int index,
btScalar stiffness);
61 void setDamping(
int index,
btScalar damping);
62 void setEquilibriumPoint();
63 void setEquilibriumPoint(
int index);
64 void setEquilibriumPoint(
int index,
btScalar val);
70 virtual int calculateSerializeBufferSize()
const;
72 virtual const char* serialize(
void* dataBuffer,
btSerializer* serializer)
const;
120 #endif // BT_GENERIC_6DOF_SPRING_CONSTRAINT_H